Rapid keystroke after key being held after a specific amount of time Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Gelicider
Posts: 3
Joined: 11 Feb 2017, 03:57

Rapid keystroke after key being held after a specific amount of time  Topic is solved

20 Aug 2017, 08:22

I'm currently making a hotkey which sends F10 when you press Shift+a, while you are within the Photoshop program

Code: Select all

#IfWinActive, ahk_class Photoshop
+a::
    send, {F10}
Return
It's working good so far, but I also want the script to rapidly send F10 after you hold down Shift+a after a specified amount of time (e.g I don't want it to rapidly send F10 the moment I press Shift+a). I also want to set a limit on how rapid the keystrokes are being sent.

Is there a way to do this? Any help will be appreciated!

EDIT:
Nevermind, turns out it's actually already doing what I wanted, but it's just sending it too fast so all I need to do is add Sleep:

Code: Select all

#IfWinActive, ahk_class Photoshop
+a::
    send, {F10}
    Sleep 100
Return

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: No registered users and 342 guests