how to have a infinite holding down key?

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
huyra_2
Posts: 5
Joined: 29 Apr 2020, 17:33

how to have a infinite holding down key?

05 Dec 2021, 16:54

hi, is there a script where you can hold a key down forever? thanks
User avatar
Xtra
Posts: 2750
Joined: 02 Oct 2015, 12:15

Re: how to have a infinite holding down key?

05 Dec 2021, 18:34

mikeyww wrote:
05 Dec 2021, 17:08

Code: Select all

F3::
Loop
 Send x
I think that would spam the key up and down shouldn't it be: (this emulates key repeat of a held key)

Code: Select all

F3::
Loop
 Send {x Down}
return
If there is issue of lag or the computer is not responsive add a minimal sleep to the loop.

Code: Select all

F3::
Loop
{
 Send {x Down}
 Sleep 10
}
return
HTH
User avatar
mikeyww
Posts: 26848
Joined: 09 Sep 2014, 18:38

Re: how to have a infinite holding down key?

05 Dec 2021, 18:36

Xtra is right. My script does not hold down the key.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: fiendhunter and 235 guests