mIRC Homepage
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
Posted By: MikeChat Re: editbox, detect specific clicked text. - 03/09/05 11:25 PM
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
thanks m8 laugh
works great
forgot to check my post lol >.<
© mIRC Discussion Forums