My recommendation would be to use "*=" instead of "/=".
Code:
switch *= 1
My reasons:
1) it does the same thing
2) Multiplcation is ALWAYS faster than division.
3) Just some input of my own - you might want to do this instead.
Code:
switch := !switch
Then, you could use
Code:
if Switch
MsgBox, Do thing
else
MsgBox, Don't do thing
Plus, my quess is that the not operation ("!") is quicker than multiplication, but that's just my guess.
_________________
As always, if you have any further questions, don't hesitate to ask.
Add OOP to your scripts via the
Class Library. Check out
my scripts.