Jump to content

Help the hotkey


Recommended Posts

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?

Link to comment
Share on other sites

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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...