Outdated[AUTOIT] RapidFire Script

Posts 1–4 of 4 · Page 1 of 1
[AUTOIT] RapidFire Script
I saw people are selling stuff like this for 5-10€ so i decided to code it in AutoIt instead of AHK.
Its useful for pistols.

1. Download Autoit https://www.autoitscript.com/site/autoit/downloads/ and https://www.autoitscript.com/site/autoit-script-editor/
2. Compile the Script. Change Values if needed.
3. Have fun

Settings:
Middle Mouse - RapidFire
F11 - Close Script
DEL - Pause


Code:
Global $IsPaused = False

HotKeySet("{F11}", "Script_Kill")
HotKeySet("{DELETE}", "Script_Pause")

Func Script_Kill()
Exit
EndFunc

Func Script_Pause()
$IsPaused = Not $IsPaused
EndFunc
While 1
    If _IsPressed(0x04) And $IsPaused = False Then
        MouseClick ("left")
        Sleep(30)
	EndIf
	WEnd

Func _IsPressed($sHexKey, $vDLL = 'user32.dll')
    Local $a_R = DllCall($vDLL, "short", "GetAsyncKeyState", "int", '0x' & $sHexKey)
    If @error Then Return SetError @error, @extended, False)
    Return BitAND($a_R[0], 0x8000) <> 0
EndFunc
"Error: Badly formarted variable or macro" any help ?

EDIT: Delete the line 22, it will works
same for me, pls fix it
Quote Originally Posted by KeksFisch View Post
same for me, pls fix it
i found a fix, delete the 22 line
Posts 1–4 of 4 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

Talk with us