Jump to content
Sign in to follow this  

Allowing Users to Set Hotkeys

Recommended Posts

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.

Share this post

Link to post
Share on other sites

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

while 1
    MsgBox(0,"Running","Press the button your defined before to Exit",2)

You could make it in a better way, but this is the simple way.. just an example :D

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 by newbiescripter

Share this post

Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Create New...