Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #SingleInstance
- gActivateScript = 0
- ; Insert to activate the macro
- ~Insert::
- KeyWait, Insert
- GetKeyState, InsertState, Insert, T
- If InsertState = D
- {
- gActivateScript = 1
- }
- else
- {
- gActivateScript = 0
- }
- return
- ; CTRL + SHIFT + LBUTTON to activate the macro
- ~+^LButton::
- If gActivateScript = 0
- {
- gActivateScript = 1
- }
- else
- {
- gActivateScript = 0
- }
- return
- ;Also applies to burst weapons. ie click and hold will perform like a full auto firing mode
- ~LButton::
- Goto, DoFiringLoop
- Return
- ;When crouching and firing at the same time. Using Ctrl as crouch button
- ~^LButton::
- Goto, DoFiringLoop
- Return
- DoFiringLoop:
- if gActivateScript = 1
- {
- Loop
- {
- ;Set you game here.
- IfWinActive, APB Reloaded
- {
- MouseClick, left,,, 1, 0, D
- ;delay between simu. mouse btn down and up
- Sleep, 0
- MouseClick, left,,, 1, 0, U
- GetKeyState, LButtonState, LButton, P
- If LButtonState = U
- {
- ;break the loop if physical state of mouse btn is up.
- break
- }
- ;delay between each simu. click events
- Sleep, 0
- }
- else
- {
- break
- }
- }
- }
- exit
- return
Add Comment
Please, Sign In to add comment