mIRC Home    About    Download    Register    News    Help

Print Thread
#18374 06/04/03 09:24 PM
Joined: Mar 2003
Posts: 437
M
MTech Offline OP
Fjord artisan
OP Offline
Fjord artisan
M
Joined: Mar 2003
Posts: 437
dialog su {
title "script use: [/su]"
size -2 320 40 25
option dbu
check "NickList", 1, 1 1 42 10
check "Control Panel", 2, 1 9 43 10
check "Short Cuts", 3, 1 17 37 10
}
on *:dialog:su:init:*: {
if (%su.nl == 1) { did -c su 1 }
elseif (%su.nl == 0) { did -u su 1 }
elseif (%su.cp == 1) { did -c su 2 }
elseif (%su.cp == 0) { did -u su 2 }
elseif (%su.sc == 1) { did -c su 3 }
elseif (%su.sc == 0) { did -u su 3 }
}
on *:dialog:su:sclick:*: {
if ($did == 1) { set %su.nl $did(su,1).state }
if ($did == 2) { set %su.cp $did(su,2).state }
if ($did == 3) { set %su.sc $did(su,3).state }
}

it dont seem to work right and i cant figure out why.

Last edited by MTech; 06/04/03 09:27 PM.
#18375 06/04/03 10:09 PM
Joined: Dec 2002
Posts: 1,527
_
Hoopy frood
Offline
Hoopy frood
_
Joined: Dec 2002
Posts: 1,527
dunno why u need the elseif portion in the init maybe try changing them all to if ... altho thats not how id have done it
id actually do it entirely different than ur setup but maybe that will work for urs


D3m0nnet.com
#18376 07/04/03 01:06 PM
Joined: Feb 2003
Posts: 47
G
Ameglian cow
Offline
Ameglian cow
G
Joined: Feb 2003
Posts: 47
Quote:
init just before a dialog is displayed, controls can be initialized in this event. id is zero.


from the help file

#18377 09/04/03 06:55 PM
Joined: Apr 2003
Posts: 1
N
Mostly harmless
Offline
Mostly harmless
N
Joined: Apr 2003
Posts: 1
nothing will be displayed if the variables are $null.. so that might be the problem with init.


Link Copied to Clipboard