Drew Posted April 29, 2008 Share Posted April 29, 2008 Is there any way to let users assign their own hotkeys? This would be VERY helpful , as some of my users have different keyboards , like canadian keyboards , etc. Link to comment Share on other sites More sharing options...
newbiescripter Posted April 29, 2008 Share Posted April 29, 2008 (edited) I guess that you can do something like this: $key = InputBox("HotKeySet","Type which key you want to use as HotKey","q") HotKeySet($key, "Terminate") Func Terminate() Exit 0 EndFunc while 1 MsgBox(0,"Running","Press the button your defined before to Exit",2) WEnd You could make it in a better way, but this is the simple way.. just an example EDIT: The smarter way is to read about this in the help file _IsPressed - then the user don't have to type it in the inputbox. You can see the ID's for the keys in the Misc.au3 Edited April 29, 2008 by newbiescripter Link to comment Share on other sites More sharing options...
Danp2 Posted May 4, 2008 Share Posted May 4, 2008 (edited) Is there any way to let users assign their own hotkeys?This would be VERY helpful , as some of my users have different keyboards , like canadian keyboards , etc.Take a look here. Edited May 4, 2008 by DanP2 Latest Webdriver UDF Release Webdriver Wiki FAQs 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