Sign in to follow this  
Followers 0
grasshopper3

HotKeys! What Am I Doing Wrong?!

3 posts in this topic

The function runs with script is built not when hot key is pressed.

HotKeySet("{CTRLDOWN}+P",_TypePassword())

Func _TypePassword()
    Send("password")
EndFunc

While 1
    Sleep(100)
WEnd

Share this post


Link to post
Share on other sites



HotKeySet("^p","_TypePassword") ;changed this. See below.
; ^ instead of {CTRLDOWN}
; lowercase p (for ctrl+shift+p use ^+p)
; "" around func name
; removed func brackets.

Func _TypePassword()
    Send("password")
EndFunc

While 1
    Sleep(100)
WEnd

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