Jump to content
Sign in to follow this  
itjf

Redefine keyboard in AutoIt

Recommended Posts

itjf

Is there somebody who knows how to redefine keyboard keys in AutoIt? Etc put a macro into a key.

Share this post


Link to post
Share on other sites
Ármányos Kő

HELP file is your friend.

HotKeySet

Share this post


Link to post
Share on other sites
itjf

Thank you

I was looking for a solutution with {RWIN} key, but it is not possible.

Instead I had used /*-+

Result:

HotKeySet("{NUMPADMULT}", "_Multiply")

HotKeySet("{NUMPADSUB}", "_Subtract")

HotKeySet("{NUMPADADD}", "_Add")

HotKeySet("{ESCAPE}", "_Escape")

While 1

Sleep(1000)

WEnd

Func _Divide()

MouseClick("left")

MouseClick("left")

Sleep(500)

Send("^{INSERT}")

EndFunc

Func _Multiply()

Send("{SHIFTDOWN}")

Send("{RIGHT 10}")

Send("{SHIFTUP}")

Sleep(300)

Send("^{INSERT}")

EndFunc

Func _Subtract()

Send("^{INSERT}")

EndFunc

Func _Add()

Send("^v")

EndFunc

Func _Escape()

Exit

EndFunc

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  

×