mzscript: !ifEval(x > y) Thread last updated on 2004-07-04 00:59:50

Posted by member 7991 on 2004-07-03 22:42:46

This evaluation is always executing as if it were true, regardless of the variable values... any ideas why?

%#SystrayCurrentIcons%# and %#minimalTraySize%# are both integer values

*Script exec !varset temp1 %#SystrayCurrentIcons%#
*Script exec !varset temp2 %#minimalTraySize%#
*Script exec !ifEval("%{temp1}" > "%{temp2}") {!execute !minimalTrayFull} else {!execute !minimalTrayNotFull}

Posted by member 99 on 2004-07-03 22:54:33 link

The % before temp2?

Posted by member 7991 on 2004-07-03 22:55:16 link

yeah, that was a typo. I've changed that line so many times...

This line may be the problem however... I'm pretty new to evaluations in mzscript. The following line may be causing problems too:

*script exec !ifEq traymaximized "true" {!execute !addMaximizedTrayIcon} else {!execute !addMinimizedTrayIcon}

Posted by member 7991 on 2004-07-04 00:59:50 link

I figured out my problem... "!ifEval(" should have been "!ifEval ("

In other words, I left out a space. Thanks tho RabidCow! I figured it was just a typo. My script is working beautifully now. I had been working on an auto-resizing taskbar/systray combo, with a button to convert the systray from a minimized mode (say, 2 icons) to a maximized mode (all icons); much like the 'feature' in Windows XP.