Jump to content
Sign in to follow this  

Customizeable hotkeys

Recommended Posts


i Made a very simple script for a Warcraft 3 lossbot but as there are many different language versions of the game hotkeys for each language version are different so i need my users to be able to customize the hotkeys I'm new at autoit and really need help

hmm here is the code i acidently put it as an attachment i need the Q's will be different for everyone and those are the hotkeys that will need to b customizeable

; Press Esc to terminate script, Pause/Break to "pause"

Global $Paused, $t = 0

HotKeySet("{PAUSE}", "TogglePause")

HotKeySet("{ESC}", "Terminate")

HotKeySet("{F2}", "ShowMe")




Edited by KaMMikaze

Share this post

Link to post
Share on other sites

HotKeySet([key],[function] ) allows the use of a variable for your key. That should basically be all you need to know to come up with a solution. Have the user define his or her custom hotkey upstream with whatever input method you prefer, and reference it in HotKeySet( )

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