mIRC Home    About    Download    Register    News    Help

Print Thread
#159406 16/09/06 10:16 PM
Joined: Apr 2005
Posts: 1,009
raZOR Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Apr 2005
Posts: 1,009
not to post whole design/code

problem is in 2 controls

edit control (ID 2)
button control (ID 5)

thing i want is that while edit control (2) is empty
that button is disabled, and vice versa.

but this code doesnt work for me smirk

on *:dialog:dialog_name:edit:2:{
if ($did == $null) { did -b $dname 5 }
else { did -e $dname 5 }
}


IceCapped
#159407 16/09/06 10:17 PM
Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
Code:
on *:dialog:dialog_name:edit:2:{
  if ($did[color:red]($did)[/color] == $null) { did -b $dname 5 }
  else { did -e $dname 5 }
} 

#159408 16/09/06 10:38 PM
Joined: Apr 2005
Posts: 1,009
raZOR Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Apr 2005
Posts: 1,009
thank you very much ^^

just question, why does it require 2 $dids ?

isnt 1 enough inside EVENT ID (for that ID) ?

Last edited by raZOR; 16/09/06 10:40 PM.

IceCapped
#159409 16/09/06 10:44 PM
Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
$did is the ID that triggered the event. $did($did) gets the text of the id that triggered the event (it's equivalent to $did($did).text or $did(2).text).

#159410 16/09/06 10:53 PM
Joined: Apr 2005
Posts: 1,009
raZOR Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Apr 2005
Posts: 1,009
thanks again =)


IceCapped

Link Copied to Clipboard