/DidCell

By Relinsquish on Nov 09, 2004

This is a /didcell custom alias, which allows you change the text inside specified MDX Listview cells.

; Name: /DidCell
; Date: November 9, 2004
; Description: This is a /didcell custom alias, which allows you change the text inside specified MDX Listview cells.
;
; By: Relinsquish
; IRC: irc.undernet.org @ #mIRC.net
; Email: Relinsquish@mirc.net
;
; Usage: /didcell <Dialog Name> <ID> <Line> <Cell> <New Text>
;
; Note:
; Dialog has to be open, ID has to be a MDX Listview, and line/cell has to exist.
; Remember, line 1 always starts at line 2 for MDX. This is because line 1 is the listview header information.
;
; Example:
; /didcell Acronyms 20 5 2 Laughing Out Loud
; This changes the 2nd cell in the 5th line of ID 20 in the dialog "Acronyms" to the text: Laughing Out Loud

alias didcell {
  if ($did($1,$2).sel) {
    var %a = $ifmatch
    did -u $1-2
  }
  did -o $1-3 $puttok($did($1,$2,$3),$gettok($gettok($did($1,$2,$3),$4,9),1- $+ $iif($4 == 1,5,4),32) $5- $chr(32),$4,9)
  if (%a) { did -c $1-2 %a }
}

Comments

Sign in to comment.
Relinsquish   -  Nov 09, 2004

Heh. The site messed up my \"Usage\" information. The proper way to use this /didcell alias is: /didcell DialogName ID Line Cell NewText

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.