Sign in to follow this  
Followers 0
dannybones

Using hotkey to run script

4 posts in this topic

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!

Share this post


Link to post
Share on other sites



#3 ·  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

Share this post


Link to post
Share on other sites

Hey, awesome - you guys are great!

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  
Followers 0