Help with toggle Topic is solved

Ask gaming related questions (AHK v1.1 and older)
mdrake1
Posts: 29
Joined: 18 Oct 2020, 07:15

Help with toggle

Post by mdrake1 » 11 May 2021, 12:29

Hi, i need a script that everytime i hit 6 it holds 6 down for 2 seconds then stops.
User avatar
mikeyww
Posts: 26882
Joined: 09 Sep 2014, 18:38

Re: Help with toggle  Topic is solved

Post by mikeyww » 11 May 2021, 18:09

Code: Select all

SetKeyDelay,, 2000
$6::Send 6
mdrake1
Posts: 29
Joined: 18 Oct 2020, 07:15

Re: Help with toggle

Post by mdrake1 » 15 May 2021, 10:59

thanks
Rohwedder
Posts: 7625
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: Help with toggle

Post by Rohwedder » 17 May 2021, 02:52

Hallo,
SetKeyDelay,, 2000 in the auto-execute section?
I think this will be fun!
User avatar
mikeyww
Posts: 26882
Joined: 09 Sep 2014, 18:38

Re: Help with toggle

Post by mikeyww » 17 May 2021, 06:38

If there is more to the script, I would surely move it inside the hotkey routine! An alternative is Sleep. The SetKeyDelay cannot be (readily) interrupted.
Post Reply

Return to “Gaming Help (v1)”