Ober Posted April 14, 2012 Share Posted April 14, 2012 Sorry if this has been posted somewhere, being such a simple thing i figure it woulda been everywhere but couldnt find it searching... Basically im wanting to Swap True/False with a keypress... at this molment im doing this HotKeySet("{F7}", "QF") Func QF() If QF = True then QF = False Else QF = True EndIf EndFunc but i cant imagine thats the best or most effecient way to do it... i would think it could be done with a single line of code if i knew the syntax, shrug... Thanks... Link to comment Share on other sites More sharing options...
JohnOne Posted April 14, 2012 Share Posted April 14, 2012 $QF = Not $QF AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Ober Posted April 14, 2012 Author Share Posted April 14, 2012 so this is what i can shorten it to.... tyvm! exactly what i was looking for... HotKeySet("{F7}", "QF") Func QF() $QF = Not $QF EndFunc Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now