Sign in to follow this  
Followers 0
Sabrina

Help the hotkey

4 posts in this topic

I am new in autoit programming.
Used for a long time ahk.
In ahk there is a $ you use the key and more the function of the script.
I wonder if the autoit have something?

example:
I use left is script will use to left and then up.
script:

$left::
send {left}
send {up}
return

In Autoit there doing this?

Share this post


Link to post
Share on other sites



#3 ·  Posted (edited)

HotkeySet

Click it.

HotKeySet("{left}", "jump")

Func jump()
 Send ("{up}{left}")
Endfunc

If I do that when you press left the script will go up and come into loop.

the script will not run up and left

------[Edit]------

result:

HotKeySet("{left}", "jump")

Func jump()
 HotKeySet("{left}")
 Send ("{up}{left}")
 HotKeySet("{left}", "jump")
Endfunc

Ok...

But would not otherwise or prefix?

Edited by Sabrina

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