i tried like 12 different scripts, heres a few of the rapid fire scripts i have
$x:: Loop { if not GetKeyState("x", "P") break sleep 50 Click } return
#NoEnv SendMode Input SetMouseDelay, -1 SetKeyDelay, -1 ~Tab:: ;Use the space key to quickly toggle the script on & off Hotkey, ~LButton, toggle If toggle != 1 { toggle := 1 ; Will beep if it is set to on SoundPlay *84 ;Good because it plays over primary speakers. Others tend to play on motherboard speakers. It's 2008 many computers no longer have motherboard speakers! } else { toggle := 0 ; Will beep if it is set to off SoundPlay *64 ;Good because it plays over primary speakers. Others tend to play on motherboard speakers. It's 2008 many computers no longer have motherboard speakers! } _auto := true ~LButton::autofire() ~^LButton::autofire() Code: \::suspend ;\ key completely suspends the script autofire() { global _auto if _auto { { Loop { if GetKeyState("LButton", "P") { Test1 := A_Index ;Test1 = A variable that carries outside of the loop, A_Index = how many times this specific loop has run. SendInput {LButton Down} Random, Sleep, 25, 35 Sleep, %Sleep% ;Time to wait in MS { If ( mod(Test1, 3) <> 0 ) mouseXY(0,3) } SendInput {LButton Up} Random, Sleep, 25, 54 Sleep, %Sleep% ;Time to wait in MS } else break } } ;; loop } ;; if } ;; autofire() mouseXY(x,y) { DllCall("mouse_event",uint,1,int,x,int,y,uint,0,int,0) } return ;;;;;; ;;; End script
#NoEnv SendMode Input SetMouseDelay, -1 SetKeyDelay, -1 ~Tab:: ;Use the space key to quickly toggle the script on & off Hotkey, ~Space, toggle If toggle != 1 { toggle := 1 ; Will beep if it is set to on SoundPlay *84 ;Good because it plays over primary speakers. Others tend to play on motherboard speakers. It's 2008 many computers no longer have motherboard speakers! } else { toggle := 0 ; Will beep if it is set to off SoundPlay *64 ;Good because it plays over primary speakers. Others tend to play on motherboard speakers. It's 2008 many computers no longer have motherboard speakers! } _auto := true ~Space::autofire() ~^Space::autofire() Code: \::suspend ;\ key completely suspends the script autofire() { global _auto if _auto { { Loop { if GetKeyState("LButton", "P") { Test1 := A_Index ;Test1 = A variable that carries outside of the loop, A_Index = how many times this specific loop has run. SendInput {Space Down} Sleep, 35.28019 ;Time to wait in MS SendInput {Space Up} Sleep, 35.8019 ;Time to wait in MS } else break } } ;; loop } ;; if } ;; autofire() mouseXY(x,y) { DllCall("mouse_event",uint,1,int,x,int,y,uint,0,int,0) } return ;;;;;; ;;; End script
~F11::Suspend, toggle *lbutton:: Loop { SetMouseDelay 85 Click If (GetKeyState("LButton","P")=0) Break }
~Rctrl::Suspend LButton:: Loop { SetMouseDelay 30 Click Left If (GetKeyState("LButton","P")=0) Break }
Tab:: Loop { Tab If (GetKeyState("Tab","P")=0) Break }
and a very basic reload hotkey i just made
~T::Suspend ~E:: SendInput {Click Down} sleep 30 SendInput {Click Up} sleep 30 SendInput {R Down} Sleep 30 SendInput {R Up} Sleep 900 SendInput {Q Down} Sleep 40 SendInput {Q Up} Sleep 65 SendInput {Q Down} Sleep 40 SendInput {Q Up}
i posted this before but some stuff came up and i couldnt reply to it and i didnt want to revive a dead thread, sorry about that:P