Script stops when clicking other buttons Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
b3d012
Posts: 2
Joined: 27 May 2018, 18:18

Script stops when clicking other buttons

27 May 2018, 18:27

using a script i found online, when i use it while clicking other buttons, it stops.

*F::
*^F::
*+F::
Send {2}
Sleep 750
MouseClick ,Left,X,Y,3,0
Send {3}
Sleep 700
MouseClick ,Left,X,Y,3,0
return

I hold F for it to work, it selects slot 2 , shoots , slot 1, shoot, repeat, in fortnite.
except when im moving using wasd while im holding F, script stops :(
i know nothing about scripting tbh
Rohwedder
Posts: 7630
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: Script stops when clicking other buttons  Topic is solved

27 May 2018, 23:58

Hallo,
try:

Code: Select all

*f::
While GetKeyState("f","P")
{
	Send {2}
	Sleep 750
	MouseClick ,Left,X,Y,3,0
	Send {3}
	Sleep 700
	MouseClick ,Left,X,Y,3,0
}
Return
b3d012
Posts: 2
Joined: 27 May 2018, 18:18

Re: Script stops when clicking other buttons

28 May 2018, 07:32

Rohwedder wrote:Hallo,
try:

Code: Select all

*f::
While GetKeyState("f","P")
{
	Send {2}
	Sleep 750
	MouseClick ,Left,X,Y,3,0
	Send {3}
	Sleep 700
	MouseClick ,Left,X,Y,3,0
}
Return
Thank You, Ill Try It in a Sec

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: No registered users and 355 guests