Hello, everyone. I need help converting a script from Autohotkey to Applescript. I'm not sure if an exact conversion is possible, but I would like to at least simulate a similar behavior. Here's the code in Autohotkey's language:
~CapsLock::Suspend, % GetKeyState("CapsLock","t") ?
c::
While GetKeyState("c","P")
{
send, {x down}
sleep, 10
send, {x up}
sleep, 25
send, {x down}
sleep, 10
send, {x up}
sleep, 25
}
Basically, I need the x keystroke to be pressed twice fairly quickly. Any assistance would be greatly appreciated. Thanks!
~CapsLock::Suspend, % GetKeyState("CapsLock","t") ?
c::
While GetKeyState("c","P")
{
send, {x down}
sleep, 10
send, {x up}
sleep, 25
send, {x down}
sleep, 10
send, {x up}
sleep, 25
}
Basically, I need the x keystroke to be pressed twice fairly quickly. Any assistance would be greatly appreciated. Thanks!