Skip to content

EhudKirsh/AutoHotkey-Gaming-Macros

Repository files navigation

Do you want to fire fully-automatically in games that only let you tap or burst fire? These macros simulate repeated Left-Mouse Button (LMB) clicks and effectively implement full-auto firing.


For games that have infinite ammo, and firing doesn't slow down movement, you can actually make use of the otherwise useless Scroll Lock (ScrLk) button. The macro below simulates LMB clicks when ScrLk's LED on your keyboard is on, and stop when you press ScrLk again and turn ScrLk's LED off. You can press on ScrLk to re-start and re-pause this macro as many times as you would like.

#Persistent ; Keeps the script running
SetTimer, CheckScrLk, 10 ; Check every 10ms
return

CheckScrLk:
if GetKeyState("ScrollLock", "T") ; If Scroll Lock is toggled on
{
    Click ; Simulate a mouse click
    Sleep, 1 ; Add delay between clicks (adjust as needed)
}
return

Examples of flash games (attached above) where this macro is useful are:

Crusader Tank

Arcane - The Armor Collector (Switch to melee next to friendlies to avoid friendly-fire)

LostVectors' Bowmaster Prelude


Likewise, some games that only allow tap and burst fire have stealth, limited ammo, require reloading, slow movement when firing or having to be extra careful not to shoot at certain objects, so it's best to have a macro that simulates LMB clicks simply by holding the LMB, so you can quickly unclick. The script below accomplishes this:

$LButton:: ; Custom handler for the left mouse button
Loop
{
    if !GetKeyState("LButton", "P") ; If the button is released, exit the loop
        break
    Click ; Simulate a left mouse click
    Sleep, 1 ; Delay between simulated clicks (adjust as needed)
}
return

Examples of flash games (attached above) where this macro is useful are: Crusader Tank,

Miniclip's Commando

LostVectors' Red Dragon


Steps to use AutoHotkey (AHK) macros:

  1. Download AutoHotkey

  2. Click on 'New script' in AutoHotkey Dash and name it something nice.

  1. Press Edit. Copy & paste the above script. It can be editted in Notepad or VS Code.

  2. Double-click the new .ahk file you created and saved in the folder it was saved.

This macro is activated when you can see the green H icon in the right of the taskbar.

You can right-click on this icon and press 'Exit' to quit the macro.

Hovering over it with the mouse cursor shows its name, in case you have multiple macros activated.

About

Repeat AutoClicker

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published