mIRC Home    About    Download    Register    News    Help

Print Thread
#64408 18/12/03 11:46 AM
Joined: Dec 2002
Posts: 264
Z
zack Offline OP
Fjord artisan
OP Offline
Fjord artisan
Z
Joined: Dec 2002
Posts: 264
When trying to do a $style for my @window, my variable contained a : (semi-colon), and this seem to cause issues, as seen with...
Code:
menu @testwin {
  $iif(%some:var == 1,$style(1)) Set:set %some:var 1
}

Just /window @testwin and try and rightclick to bring up the menu. I did further tests and the : in the final bit (Set:set %some:var 1) works fine, it's the : inside the $iif.

IMO this shouldn't affect the popup at all.. Just wondering if anyone else can replicate this. I'm using 6.12.

T
theRat
theRat
T
Of course it's creating problems,first thing mIRC looks in popup definitions is :, everything before that is item name and after is the command(s)...
That's the reason why item:cmd works, instead of having to add spaces around :
And as item is now " $iif(%some " mIRC starts to evaluate it and sees $iif( without closing bracket, flips out and decides there is something f*cked up here and don't show anything...

Joined: Jan 2003
Posts: 1,057
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2003
Posts: 1,057
I would advice using .~`' or something as a devider instead of characters which are used in the syntax's of mIRC itself

Joined: Feb 2003
Posts: 806
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Feb 2003
Posts: 806
I'd suggest either using a separator other than ':', or referencing it with $chr(58).

$iif($($+(%,some,$chr(58),var),2) == 1,$style(1)) Set:set %some:var 1
$iif( [ [ $+(%,some,$chr(58),var) ] ] == 1,$style(1)) Set:set %some:var 1
$iif( %some [ $+ [ $chr(58) ] $+ ] var == 1,$style(1)) Set:set %some:var 1

Joined: Dec 2002
Posts: 264
Z
zack Offline OP
Fjord artisan
OP Offline
Fjord artisan
Z
Joined: Dec 2002
Posts: 264
Of course, but I'm saying it shouldn't be affected by that.


Link Copied to Clipboard