key delay

Ask gaming related questions (AHK v1.1 and older)
vukgy
Posts: 1
Joined: 29 Nov 2022, 06:52

key delay

Post by vukgy » 29 Nov 2022, 06:57

how do i make a script that if i press the w key it presses another button with a little delay. I am fairly new to ahk....

User avatar
mikeyww
Posts: 26595
Joined: 09 Sep 2014, 18:38

Re: key delay

Post by mikeyww » 29 Nov 2022, 08:11

Welcome to this AutoHotkey forum!

Code: Select all

w::
Sleep, 200
Send x
Return
Test with Notepad as the active window.

You can click on a posted command to learn more about it.

Explained: Introduction and Simple Examples

Post Reply

Return to “Gaming Help (v1)”