Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Zomaji

macrumors newbie
Original poster
Feb 12, 2017
3
0
can someone help me convert this AHK to AppleScript

$2::
While GetKeyState("2","p"){
Send,,2
sleep 80ms
}
return



Thanks
 
Hi

Well, I'm afraid I don't know anything at all about AHK. Can you explain in words (rather than code) what you want an AppleScript to do, and I'll sure someone (maybe even me...) will be able to offer some advice.
 
I am looking for a script that when I push number 2 it will repeat it every 80ms in World of Warcraft and then when I let go of the key it stops
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.