Jump to content
Sign in to follow this  
Icy

HotKeySet for simple letter?

Recommended Posts

Hi,

I would like to use function "HotKeySet" for some letter: for example "X". Can you help me how?

Share this post


Link to post
Share on other sites

Here is how you do it, it is fairly simple:

HotKeySet( "x", "k" ) 
While 1     
Sleep( 10 ) 
WEnd 
Func k()    
Exit 
EndFunc

What it does is it goes through the script until x is pressed and then it goes to function k().

If you want to use special keys like escape then you have to type something like:

HotKeySet( "{esc}", "k" ) 
While 1     
Sleep( 10 ) 
WEnd 
Func k()    
Exit 
EndFunc
Edited by Logty

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...