Can someone help me to finish this script or rewrite?

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
vincitytaymo
Posts: 1
Joined: 22 Oct 2018, 02:18

Can someone help me to finish this script or rewrite?

22 Oct 2018, 02:24

How to do rapid fire on "J" button?
Code: Select all

j::
While GetKeyState("j", "P")
{
Send, {j down}
sleep, 10
Send, {j up}
return
}
Rohwedder
Posts: 7647
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: Can someone help me to finish this script or rewrite?

22 Oct 2018, 02:39

Hallo,
try:

Code: Select all

$j::
While GetKeyState("j", "P")
{
Send, {j down}
sleep, 10
Send, {j up}
}
return
andremarasca
Posts: 14
Joined: 21 Oct 2018, 14:52

Re: Can someone help me to finish this script or rewrite?

22 Oct 2018, 04:32

Code: Select all

j::
While GetKeyState("j", "P")
{
Send, {j down}
sleep, 10
Send, {j up}
sleep, 10
}
return
Put the return outside the loop, or there will be no loop.
Add sleep after Send, {j up}, because otherwise it will run and instantly after that Send, {j down} will also be.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: filipemb, mikeyww, PsysimSV, USS_Sandhu and 321 guests