Posted by member 12798 on 2004-06-17 05:47:08 link
the script should be ok... of course you need to make a complete script out of it, only that one line won't work, of course (don't know how much you're into scripting...).
so it should be
you could of course put the line with the start value to a *script start line (actually, you should, although it doesn't make any difference in performance ;) ).
so it should be
*script bang !setdeskarea
*script exec !ifnexist "state" !varset state "1" ; defines start value
*script exec !ifEval ("%{state}" = "1") {!execute [!desktopsetarea bla2][!varset state "2"]} else {!execute [!desktopsetarea bla1][!varset state "1"]}
*script ~bang
*script exec !ifnexist "state" !varset state "1" ; defines start value
*script exec !ifEval ("%{state}" = "1") {!execute [!desktopsetarea bla2][!varset state "2"]} else {!execute [!desktopsetarea bla1][!varset state "1"]}
*script ~bang
you could of course put the line with the start value to a *script start line (actually, you should, although it doesn't make any difference in performance ;) ).