This tutorial shows you how to create scripts which will allow you to autoclick,
auto fire and other things
You should know some basic facts, You can read the official tutorial
<!-- m -->http://www.autohotke...cs/Tutorial.htm<!-- m -->
Or you can read my brief page on 5 things you need to know before you get started
<!-- m -->http://www.autohotke... ... ng_started<!-- m -->
-What is Rapidfire?
Rapidfire is where you hold a button down and that button will then be pressed multiple times quickly. It is needed for games Alot.
this is how a normal autofire script may look
Note that Lbutton means Left mouse click
~$*LButton:::: ;This makes the hotkey, so Lbutton triggers the script Loop ;loop the script untill broken { ;loop start GetKeyState, var, LButton, P ;Get the state of Lbutton If var = U ;has it been released? Break ;its been released so break the loop Send {LButton} ;It hasnt been released so send another Click sleep 20 ; This is the time between presses, after its slept it will return to the top of the loop and start again } ;loop end
To change the hotkey (start button) change both the two words highlighted in red
~$*[color=red]Lbutton[/color]:: Loop { GetKeyState, var, [color=red]LButton[/color], P If var = U Break Send {LButton} sleep 20 }
So, for example changed to the f key
~$*[color=red]F[/color]:: Loop { GetKeyState, var, [color=red]F[/color], P If var = U Break Send {LButton} sleep 20 }
To change the time between presses, you need to change the sleeping time.
so
Sleep 10 = 0.01 seconds
Sleep 100 = Sleep 0.1 seconds
Sleep 1000 = Sleep 1 second
Sleep 675 = Sleep 0.675 seconds
-example of changing the sleep time
~$*LButton:: Loop { GetKeyState, var, LButton, P If var = U Break Send {LButton} [color=red] sleep 200[/color] ;Sleep 0.2 seconds }
That concludes part one
Advanced features
I use some specail options here, you can read about them at these links
<!-- m -->http://www.autohotke..._NoTrayIcon.htm<!-- m -->
<!-- m -->http://www.autohotke... ... chMode.htm<!-- m -->
<!-- m -->http://www.autohotke... ... Active.htm<!-- m -->
<!-- m -->http://www.autohotke..._Persistent.htm<!-- m -->
<!-- m -->http://www.autohotke...SetKeyDelay.htm<!-- m -->
or, you can use my compact guide which gives a brief explanation of what it does
<!-- m -->http://www.autohotke... ... pt_Options<!-- m -->
I highlighted everything in red that you can change, dont be afraid to change them
#Persistent SetTitlematchmode, 2 SetKeyDelay, [color=red]5, 5[/color] #Ifwinactive, [color=red]Modern Warfare[/color] ~$*[color=red]LButton[/color]:: Loop { GetKeyState, var, [color=red]LButton[/color], P If var = U Break Send [color=red]{LButton}[/color] sleep [color=red]200[/color] ;Sleep 0.2 seconds } #Ifwinactive ;end ;do nothing, so the hotkey above this wont work outside of modern warfare