Jump to content

Recommended Posts

Posted

I used to use AutoHotKey, which works like this:

I double-click on the script file to load it. The first line will read something like:

#z::

which means that nothing happens, until I press Windows-z, which makes the script execute.

Maybe I'm dumb as a box of rocks, but I can't figure out how to assign a key to make my AutoIt script execute. How do I do so? Been trying all afternoon to figure it out. Thanks!

Posted (edited)

I used to use AutoHotKey, which works like this:

I double-click on the script file to load it. The first line will read something like:

#z::

which means that nothing happens, until I press Windows-z, which makes the script execute.

Maybe I'm dumb as a box of rocks, but I can't figure out how to assign a key to make my AutoIt script execute. How do I do so? Been trying all afternoon to figure it out. Thanks!

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

Func YourRoutine()

Do Something

EndFunc

If you hit the Esc Key then the YourRoutine will run. Ant..

Edited by anixon

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
×
×
  • Create New...