Help with Code, quick easy?

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
adrenalinskr
Posts: 17
Joined: 02 Dec 2016, 13:27

Help with Code, quick easy?

19 Aug 2019, 18:56

My problem is.. I want to be able to hold down the f key and it spams F, with a slight delay and being able to control the mouse as well. My f key doesnt work when its loaded. What gives?

Here is my code:

f::
send {f down}
sleep 250
send {f up}
return
User avatar
Dumitas
Posts: 167
Joined: 14 Dec 2017, 21:32

Re: Help with Code, quick easy?

19 Aug 2019, 21:30

Code: Select all

$f::
while, getkeystate("f", "P")
 {
   send f
   Sleep, 250
 }
return
HotKeys
$ : This is usually only necessary if the script uses the Send command to send the keys that comprise the hotkey itself

While-loop only send the key when its pressed and keep sending it with a slight delay until you release it.(GetKeyState).
Image

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Google [Bot] and 336 guests