1224 Posted April 1, 2009 Share Posted April 1, 2009 I want to set a Hotkey - CODEHotKeySet("!{5}{F1}", "test") or CODEHotKeySet("!{5}" & "{F1}", "test") also have a problem When I press ALT+5, the "test" function is run, no need to press F1= = I want to run the test function when I press 3 buttons(ALT+5+F1) together Link to comment Share on other sites More sharing options...
Authenticity Posted April 1, 2009 Share Posted April 1, 2009 Use _IsPressed within the function body to see if '5' is pressed, so it's: #include <Misc.au3> HotKeySet('!{F1}', 'SomeFunc') . . . Func SomeFunc() If Not _IsPressed('35') Then Return . . . 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