[AHK] Automatic Spotter

Posts 115 of 19 · Page 1 of 2
[AHK] Automatic Spotter
Credit: JACKPOST
Code:
SendMode Input
#SingleInstance Force
#NoEnv
Process, Priority,, High ;Since BF1 runs at such high CPU usage rates this allows the script to function better.
#IfWinActive,Battlefield™ 1 ;Only works if the bf1 main window is open.
{		
	~*RButton::	
		Send, {q down}
		sleep 10
		Send, {q up}
		Loop
		{
			GetKeyState, KeyState, RButton, P
    			if KeyState = U
    		 	{	
				    Send, {q up} ;shouldn't be nessecery but is just a fail safe so it doesn't get stuck down
      		 		break
    		 	}
			Sleep 300 ;The main time delay between spot attempts.
			Send, {q down}
			Sleep 10
			Send, {q up} 			
		 }
		Return
}
I thought it was AHK hacks,can be download...
Quote Originally Posted by yaoxinghai View Post
I thought it was AHK hacks,can be download...
Paste it into a notepad file, save it as something.ahk
Quote Originally Posted by dongingman View Post
Paste it into a notepad file, save it as something.ahk
Thanks,Auto press "Q"
Quote Originally Posted by dongingman View Post
Paste it into a notepad file, save it as something.ahk
Where do you put it?
I have AutoHotKey, when I run it nothing happens?
do i need to run battlefield in windowed mode to get this macro working?
Great release
comment faire exactement pour le lancer en cour de jeux
Nice little AHK, can BF1 detect accurate button presses? would it be possible to very the time it activates?
Quote Originally Posted by JohnDoe1335 View Post
Nice little AHK, can BF1 detect accurate button presses? would it be possible to very the time it activates?
Can you tell me how you got it working???
Quote Originally Posted by JohnDoe1335 View Post
Nice little AHK, can BF1 detect accurate button presses? would it be possible to very the time it activates?
sure just create a randome Sleep ^^
Code:
SendMode Input
#SingleInstance Force
#NoEnv
Process, Priority,, High ;Since BF1 runs at such high CPU usage rates this allows the script to function better.
IfWinActive,Battlefield™ 1 ;Only works if the bf1 main window is open.
{		
	~*RButton::	
		Send, {q down}
		RandomSleep(5,35)
		Send, {q up}
		Loop
		{
			GetKeyState, KeyState, RButton, P
    			if KeyState = U
    		 	{	
				    Send, {q up} ;shouldn't be nessecery but is just a fail safe so it doesn't get stuck down
      		 		break
    		 	}
			Sleep 300 ;The main time delay between spot attempts.
			Send, {q down}
			RandomSleep(5,35)
			Send, {q up} 			
		 }
		Return
        
        RandomSleep(min,max) ;Sleep with a randome number in a range between min/max.
        {
        Random, random, %min%, %max%
        Sleep %random%
        }
}
doesn't seem to work for me, i hold right mouse button and aim at enemies but it doesent spot them
Got it working thanks.
Posts 115 of 19 · Page 1 of 2
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?