mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Aug 2004
Posts: 423
C
Fjord artisan
OP Offline
Fjord artisan
C
Joined: Aug 2004
Posts: 423
hello again,

i am trying to mod/update a script with a cust window & menu... i was hoping that someone would give me a pointer or two on how i could update the menu item list heres a sample of one the items:

Code:
Time Stamp $chr(32) $chr(32) $chr(32) ( $+ $iif(%Chat.TimeStamp,ON,OFF) $+ )
.Turn TimeStamp $iif(%Chat.TimeStamp,OFF,ON): {
if ( %Chat.TimeStamp ) { set %Chat.TimeStamp $false }
else { set %Chat.TimeStamp $true }
}  


is it possible to use the $style command with this? and also maybe shorten the code??

thanks in advance

Joined: Aug 2004
Posts: 16
I
Pikka bird
Offline
Pikka bird
I
Joined: Aug 2004
Posts: 16
Hi.

What about this?
This is really short and it's using $style. I think a subitem for this isnt necessary. wink

Code:
$iif(%Chat.TimeStamp,$style(1),$style(0)) Time Stamp:/set %Chat.TimeStamp $iif(%Chat.TimeStamp,$false,$true)


Regards,
KathY
Joined: Aug 2004
Posts: 423
C
Fjord artisan
OP Offline
Fjord artisan
C
Joined: Aug 2004
Posts: 423
thanks very mucho inti!!!! it works great!!
grin


Link Copied to Clipboard