C
C
cataclysm882021-05-25 08:09:33
autohotkey
cataclysm88, 2021-05-25 08:09:33

How to make a button hold for a certain amount of time in AutoHotKey?

I want the W button to be held down for 6 seconds and then released. How to do it?
It is holding down the W key for 6 seconds. It should turn out like this

:
wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww

Much needed, thanks

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2021-05-25
@ODNik

# объявляешь комбинацию в этой строке
{
SendInput, {w down}
Sleep, 6000
SendInput, {w up}
}

Similar questions

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question