Repeat key presses after held for amount of time

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
User avatar
treeh
Posts: 1
Joined: 15 Apr 2021, 22:07

Repeat key presses after held for amount of time

15 Apr 2021, 22:22

Hi, I'm trying to get my script to repeat key presses after holding the hotkey for a certain amount of time.
For example, I want to press the up arrow, and after 3 seconds it press the up arrow 5 times. But If I press the up arrow for less than 3 seconds it sends it once like normal
I've tried messing around with keywait but it doesnt seem to work. Thanks in advance :)
Rohwedder
Posts: 7625
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: Repeat key presses after held for amount of time

16 Apr 2021, 01:21

Hallo,
I don't understand you.
If you press and hold the up arrow then the Windows Autorepeat sends already 3 seconds ago, much more than 5 up arrows.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: aitaixy, Joey5 and 230 guests