mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jun 2004
Posts: 291
W
Fjord artisan
OP Offline
Fjord artisan
W
Joined: Jun 2004
Posts: 291
hi, i need to find when a certain word/text is clicked inside an editbox, or get the position in the text from where the cursor is, in the click event, something like this. (in an mIRC dialog). how can i do this?.

thanks laugh

Joined: Dec 2002
Posts: 1,245
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
hii, use the seltext
sample
Code:
alias seltext dialog -m seltext seltext
dialog seltext {
  title "Seltext in an Editbox"
  size -1 -1 100 50
  option dbu
  edit "This is a line of text", 1, 1 1 98 10
  button "Show", 2, 40 20 20 10
  text "Here", 3, 20 35 60 20, center
}
on *:dialog:seltext:sclick:2:{
  did -ri $dname 3 1 $did($dname,1).seltext
}
on *:dialog:seltext:mouse:1:{
  if ($did(seltext,1).seltext == text) { did -ri $dname 3 1 WooHoo The Secret Word! }
}


I tried usingt "uclick" but didnt get anything, mouse works though

Last edited by MikeChat; 03/09/05 11:37 PM.
Joined: Jun 2004
Posts: 291
W
Fjord artisan
OP Offline
Fjord artisan
W
Joined: Jun 2004
Posts: 291
thanks m8 laugh
works great
forgot to check my post lol >.<


Link Copied to Clipboard