can this be done with autohotkey?
for example,
let's say you assigned a hotkey like below
ctrl + 1 ---> send a
then if you press ctrl + 11(press 1 twice while ctrl is pressed), it sends "aa" by default.
I want to change this action to sending "b"
how can I do this? thank you!
Different action depending on how many times the key is pressed
Re: Different action depending on how many times the key is pressed
Try this:
Code: Select all
^1::
OneCount := 0
loop {
if (OneCount = 0 && !GetKeyState("1", "P"))
OneCount := 1
if (OneCount = 1 && GetKeyState("1", "P"))
OneCount := 2
} until !GetKeyState("Ctrl", "P")
Send, % OneCount = 1 ? "a" : "b"
return
Who is online
Users browsing this forum: Araphen, DataLife, ShatterCoder and 269 guests