Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

The definitive autofire thread!


  • Please log in to reply
130 replies to this topic
loserspearl
  • Members
  • 1 posts
  • Last active: Mar 09 2013 06:01 PM
  • Joined: 07 Mar 2013

From the code snippets I've tested here, there are many that can hang and disrupt other keys presses after ~5-10 turbo clicks. Which makes emptying a clip nearly impossible without it causing a hang to break the loop.

 

This is one that a friend and I wrote, and have found it to hang once every 30 turbo clicks or so, instead of every 5-10. This one is slightly more complex than most here, it uses caps lock spam to activate the turbo click loop. I'm not sure if it is the script or the game that is causing the hanging keys, but I have found that the hang can be broken by tapping RMB or nearly any other key for ANY scripts on this thread. Alter and use it as you please.

 

#InstallKeybdHook 
#UseHook
#Persistent
SendMode event
spam := false
~CapsLock::spam := !spam

#if spam
~*LButton::
Loop
{
    sleep 35
    GetKeyState, state, LButton, P
    if state = U
        break
    send {LButton down}
    sleep 25
    send {LButton up}
}
return


shadowless
  • Members
  • 58 posts
  • Last active: May 29 2013 11:55 PM
  • Joined: 08 Mar 2013

like :D following & bookmarked



RustyJoe31
  • Members
  • 3 posts
  • Last active: Apr 10 2013 04:35 PM
  • Joined: 07 Apr 2013

Thanks for the script, but I'm trying to get this down(failing it since the command opens other windows):

 

click

click

click

click down

 

I want the left mouse button to click 3x and the fourth time to hold it down, and repeat again. Basically, a combo for a game I play. Except  want it to be similar to the rapid fire approach. Any help? Fairly new to this and seriously confused.



Rino
  • Members
  • 250 posts
  • Last active: Dec 18 2015 05:09 PM
  • Joined: 12 Apr 2012

SetKeyDelay, 20 ; tweak this to your liking
Send {lbutton 3} ;
Send {lbutton down}
sleep, 1000 ; 1 second delay per 1000 equals a second
send {lbutton up}

 

Untested RustyJoe31, but in theory it should work. 

 

And what could possibly make OP work is tweaking SetKeyDelay to their liking.



nongtinh3
  • Members
  • 5 posts
  • Last active: Apr 22 2013 07:29 AM
  • Joined: 22 Apr 2013

great!!!



MLG TWISTED
  • Members
  • 3 posts
  • Last active: Aug 10 2013 09:18 PM
  • Joined: 02 Jul 2013

Great thread, but is it possible to use caps and lowercase in these scripts?

 

$d::
While GetKeyState("d","p"){
Send d
Sleep 100
}
return
 
I need the use of a repeater, and the use of caps and lowercase, is this possible?


SilentlyLoud
  • Members
  • 5 posts
  • Last active: Aug 14 2013 02:44 PM
  • Joined: 05 Aug 2013

Idk why but this doesnt work : 
$a::

While GetKeyState("a","p"){
Send a
Sleep 100
}
return

I play a game called aion and basically there are skills that are called "chains"  When u activate the 1st one another one comes on on the same button. When i hold down a only the 1st one is casted and then stops.

 



SilentlyLoud
  • Members
  • 5 posts
  • Last active: Aug 14 2013 02:44 PM
  • Joined: 05 Aug 2013

HALP !!!!!!



Shermanoaks
  • Members
  • 1 posts
  • Last active: Aug 07 2013 06:55 AM
  • Joined: 07 Aug 2013

Yea

 

$d::
While GetKeyState("d","p"){
Send d
Sleep 100
}
return
 
seems useful but I can't get it to work either.
 
 
 
 
Been trying to get auto fire toggle and a few other things to work in borderlands 2, edited someone elses script.  The original had auto fire on pressing both right and left mouse button, meaning it only did this when zoomed, not particularly useful for anything other than a sniper.  
 
;Borderlands 2
#IfWinActive, ahk_class LaunchUnrealUWindowsClient
;rapid fire when holding left click, spams e when holding v, jump/melee spam with extra mouse keys
;press (`) to toggle on and off
~Lalt::Suspend, Toggle
~*Lbutton::
Loop
{
 GetKeyState, state, Lbutton, P
 if State = U
 break
 ;else
 Send, {Lbutton}
}
return
$v::
    KeyWait v, T0.25                 ; Wait 1/2 second for user to release "a" key
    If ErrorLevel                   ; Still held down
        While GetKeyState("v","p"){ ; While it is held down
            Send e
            Sleep 100
        }
    Else                            ; They let go in time
        Send v
return
~*XButton1::
Loop
{
 GetKeyState, state, XButton1, P
 if State = U
 break
 ;else
 Send, {XButton1}
}
return
~*XButton2::
Loop
{
 GetKeyState, state, XButton2, P
 if State = U
 break
 ;else
 Send, {XButton2}
}
return

It mostly works, but not well enough to use, auto fire with guns that fire as fast as you can click stall out your mouse aim when firing.

 

And for some weird reason everytime I first jump with mouse XButton1 it melees at the same time with mouse Xbutton2.  Subsequent rapid fire jumps from holding down the button do not melee.

 

Also the "V" which rapid spams the "e" key to pickup items and open crates by holding it down for more than a fraction of a second still disrupts typing.



SilentlyLoud
  • Members
  • 5 posts
  • Last active: Aug 14 2013 02:44 PM
  • Joined: 05 Aug 2013

Can anyone ponst an actual workin script for press-release key repeater whilst held down ?



TheBladeRoden
  • Members
  • 1 posts
  • Last active: Sep 06 2013 07:27 AM
  • Joined: 06 Sep 2013

For some reason this works

~*RButton::
While GetKeyState("RButton","P")
{
	MsgBox it works
	Click
}
return

but this doesn't

~*MButton::
While GetKeyState("MButton","P")
{
	MsgBox it works
	Click
}
return


hachi
  • Members
  • 330 posts
  • Last active: Jul 14 2015 02:09 AM
  • Joined: 24 Jan 2010

adding my method here, for certain games that have both autofiring and single press functions you might want to use at the same time. some may not work properly if you try to force click spam, eg. a spin up, or anything else that needs a 'real' mouse down. this way you don't have to keep toggling it on and off to swap, and use a double-click to autofire instead -

 

The Double-Tap:

;detect double taps
doubletap(key) {
    ;ignore slow press
    if (a_priorhotkey != key || a_timesincepriorhotkey > 250) {
        keywait % key
        return false
    } else
        return true
}

;hit capslock to enable double click autofire
lbutton::
send {click down}
if doubletap("lbutton") && getkeystate("capslock","T") {
    while getkeystate("lbutton","P") {
        sleep 10
        send {click up}
        sleep 10
        send {click down}
    }
    send {click up}
} else {
    send {click up}
}
return


bustling pear
  • Members
  • 5 posts
  • Last active: Nov 13 2013 03:06 PM
  • Joined: 13 Nov 2013

Good idea! I will be able to learn from this post :shy:



Dilwo
  • Members
  • 1 posts
  • Last active: Nov 19 2013 04:28 AM
  • Joined: 19 Nov 2013

So I'm looking for something simple I haven't been able to find. If it's in the thread forgive me! Short on time here. 

Looking for a script that I can hotkey to my leftclick so when I left click it automatically double or even triple clicks. Useful for semi autos with high power that you don't want to waste ammo with. 

Any help?



zoylent
  • Members
  • 1 posts
  • Last active: Dec 10 2013 06:26 PM
  • Joined: 06 Dec 2013

Hey

Not sure if anyone wanna help me with this or not but i'll give it a try. I found a "auto fire script" for quake live but it doesn't work for me, here is the code:

setkeydelay, 0
~Mbutton::
While GetKeyState("MButton")
{
mousegetpos, mx, my
pixelgetcolor, ggaf, %mx%, %my%
IF (ggaf=0xFFFFFF)
send {Lbutton}
}

Do i need to add something more to this in order to make it to work? Is it possible to add an on/off hotkey?