mIRC Home    About    Download    Register    News    Help

Print Thread
#167945 01/01/07 10:00 PM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
How can you return the text in a "list" of a dialog, and that without highlight the text ? is it possible? $did(dialog,id).sel will only return it if it's highlighted.. "clicked on".


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
sparta #167946 01/01/07 10:25 PM
Joined: Oct 2006
Posts: 166
B
Vogon poet
Offline
Vogon poet
B
Joined: Oct 2006
Posts: 166
$did(dialog,id).seltext


Kind Regards, blink
b1ink #167947 01/01/07 10:28 PM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
As i wrote, $did(dialog,id).seltext - $did(dialog,id).sel <<-- will only return the text when clicked on, i want to return the first line from the sell text without click or highlight it.


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
sparta #167949 01/01/07 10:59 PM
Joined: Apr 2006
Posts: 400
K
Fjord artisan
Offline
Fjord artisan
K
Joined: Apr 2006
Posts: 400
you can use this:
Quote:

//echo -a $did(<Dialog-Name>,<listid>,<the # of the word/phrase>)

;-----Example:
//echo -a $did(Test-dialog,1,2)
would return the second word of the dialog "Test-Dialog' in the list.


-Kurdish_Assass1n
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
To build off of that, if you want the entire list, use a while loop and loop through $did($dname,$did,%var) from 1 to $did($dname,$did).lines.


Invision Support
#Invision on irc.irchighway.net

Link Copied to Clipboard