How can I swap this 2 keys?

Get help with using AutoHotkey and its commands and hotkeys
Clemens375
Posts: 125
Joined: 11 May 2020, 11:54

How can I swap this 2 keys?

17 Sep 2020, 08:44

Hello,
How can I swap this 2 keys?
x and Numpadleft


With the script I do actions like this:
I write abbreviations to get actions done.

Code: Select all

:T:exp2::

MouseClick, left,  1235,  480
Sleep, 400
MouseClick, left,  982,  868
Sleep, 200


Send, {CTRLDOWN}c{CTRLUP}
sleep, 200
Send, {HOME}
sleep, 100


MouseClick, left,  777,  481
Sleep, 100
Send, ^v


sleep, 100
MouseClick, left,  850,  646
Sleep, 100

sleep, 100
Send,{up}
sleep, 100
Send,{left 30}
sleep, 100
Send,{space}

Sleep, 100
MouseClick, left,  926,  986 
return
So I have all keys doing nothing when I press them only as a single key.
So the abbraviations like above work.

for example:

Code: Select all

$x::
return
With numpadleft I move things.
So:

Code: Select all

$NumpadLeft::
Click Down
return
Now I want to change x and numpadleft.
So I can move things with x.
and when I write "exp2" I want that is also works.
So I need to write "e" "numpadleft" "p" "2"


This is what I want.

Have a good day!

Return to “Ask For Help”

Who is online

Users browsing this forum: AHKStudent, Bing [Bot], DanRim, Google [Bot], mikeyww, Tomer and 47 guests