Hello i am playing a video game and i need press botton "q" as fast as possible constantly.
Can you help me?
Thanks.
Help with this simple script please
Re: Help with this simple script please
To just press a key you would use Send, see https://www.autohotkey.com/docs/commands/Send.htm
Example:
To have some control over it:
You can also do it in infinite loop, but controlled by pausing the script:
Example:
Code: Select all
Send, {q down}
Send, {q up}
Code: Select all
a::
Loop, 20 ; Number of repeats
{
SendInput, {q down} ; hold key down
Sleep, 10 ; Optional time for the key to be held down
SendInput, {q up} ; release the key
Sleep, 10 ; Optional delay between each key press
}
Code: Select all
#SingleInstance force
#MaxThreadsPerHotkey 2
ScriptActive := 0
a::
ScriptActive := !ScriptActive
while, ScriptActive
{
SendInput, {q down}
SendInput {q up}
}
return
Who is online
Users browsing this forum: No registered users and 66 guests