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
Help with Code, quick easy?
-
- Posts: 17
- Joined: 02 Dec 2016, 13:27
Re: Help with Code, quick easy?
Code: Select all
$f::
while, getkeystate("f", "P")
{
send f
Sleep, 250
}
return
$ : 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](https://i.imgur.com/gMEYB5w.png)
Who is online
Users browsing this forum: Kodakku and 389 guests