mIRC Homepage
Posted By: eawedat set focus to another dialog's textbox - 11/08/12 12:39 PM
hey all,

I want to move/set the cursor to the another textbox/editbox when typing 4 or more digits but cursor does not move.

Code:
alias test { dialog -m test test }
dialog test {
  title "test"
  size -1 -1 93 53
  option dbu
  edit "", 1, 22 9 50 10
  edit "", 2, 23 32 50 10
}

on *:dialog:test:edit:1: {
  set %llen $len($did(test,1).text)
  if (%llen>=4)  { did -f test 2 }
}
Posted By: Wims Re: set focus to another dialog's textbox - 11/08/12 03:14 PM
If (%llen > 4) {

You need the spaces
Posted By: eawedat Re: set focus to another dialog's textbox - 11/08/12 03:22 PM
thank you Wims smile
© mIRC Discussion Forums