Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
- #SingleInstance
- SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
- ; Global Variables
- _ftwo := false
- _fthree := false
- _ffour := false
- _ffive := false
- _fsix := false
- _fseven := false
- _m92auto := false
- ; Script Functions
- ~Up:: Suspend
- End:: ExitApp
- Insert:: Reload
- ; Toggle Keys
- F2:: _ftwo := ! _ftwo
- F3:: _fthree := ! _fthree
- F4:: _ffour := ! _ffour
- F5:: _ffive := ! _ffive
- F6:: _fsix := ! _fsix
- F7:: _fseven := ! _fseven
- F8:: _m92auto := ! _m92auto
- ; HotKeys
- ;~RButton & ~LButton::
- ; Loop {
- ; If (_fthree = true) {
- ; semi_noatt() ; semi-rifle or p250
- ; }
- ; else
- ; If (_ffour = true) {
- ; semi_4times()
- ; }
- ; else
- ; If (_ffive = true) {
- ; semi_silenced()
- ; }
- ; else
- ; If (_fsix = true) {
- ; ak47()
- ; }
- ; else
- ; If (_fseven = true) {
- ; m249()
- ; }
- ; }
- ;Return
- LCtrl & ~LButton::
- ; Loop {
- If (_ftwo = true) {
- thompson()
- }
- else
- If (_fthree = true) {
- semi_noatt() ; semi-rifle or p250
- }
- else
- If (_ffour = true) {
- semi_4times()
- }
- else
- If (_ffive = true) {
- semi_silenced()
- }
- else
- If (_fsix = true) {
- ak47()
- }
- else
- If (_fseven = true) {
- m249()
- }
- ; }
- ;Return
- ;XButton1:: ; mouse button 4
- ;Run, netsh.exe advfirewall firewall set rule name="blocknet" new enable="yes",,Hide ; lag switch = Enable
- ;return
- ;XButton2:: ; mouse button 5
- ;Run, netsh.exe advfirewall firewall set rule name="blocknet" new enable="no",,Hide ; lag switch = Disable
- ;return
- thompson()
- {
- global _ftwo
- if _ftwo
- {
- Loop
- {
- If GetKeyState("LCtrl", "LButton")
- {
- Sleep, 6
- moveAmount := (moveAmount = 2) ?6 : 0
- mouseXY(moveAmount, 1.4)
- }
- else
- break
- }
- }
- }
- semi_noatt()
- {
- global _fthree
- if _fthree
- {
- Loop
- {
- ; If GetKeyState("RButton", "LButton")
- ; {
- ; Sleep, 50
- ; Y(moveAmount, 27)
- ; X(moveAmount, -8)
- ; }
- ; else
- If GetKeyState("LCtrl", "LButton")
- {
- Sleep, 50
- Y(moveAmount, 26)
- X(moveAmount, -7)
- }
- else
- break
- }
- }
- }
- semi_4times()
- {
- global _ffour
- if _ffour
- {
- Loop
- {
- ; If GetKeyState("RButton", "LButton")
- ; {
- ; Sleep, 50
- ; Y( moveAmount, 100 )
- ; X( moveAmount, -25 )
- ; }
- ; else
- If GetKeyState("LCtrl", "LButton")
- {
- Sleep, 50
- Y( moveAmount, 100 )
- X( moveAmount, -25 )
- }
- else
- break
- }
- }
- }
- semi_silenced()
- {
- global _ffive
- if _ffive
- {
- Loop
- {
- ; If GetKeyState("RButton", "LButton")
- ; {
- ; Sleep, 50
- ; Y( moveAmount, 22 )
- ; X( moveAmount, -6 )
- ; }
- ; else
- If GetKeyState("LCtrl", "LButton")
- {
- Sleep, 50
- Y( moveAmount, 22 )
- X( moveAmount, -6 )
- }
- else
- break
- }
- }
- }
- ak47()
- {
- global _fsix
- If _fsix
- {
- Loop
- {
- ; If GetKeyState("RButton", "LButton")
- ; {
- ; Sleep, 1
- ;; Y( moveAmount, 5 )
- ; X( moveAmount, -3 )
- ; }
- ; else
- If GetKeyState("LCtrl", "LButton")
- {
- Sleep, 1
- Y( moveAmount, 2.5 )
- X( moveAmount, -1 )
- }
- else
- break
- }
- }
- }
- m249()
- {
- global _fseven
- if _fseven
- {
- Loop
- {
- ; If GetKeyState("RButton", "LButton")
- ; {
- ; Sleep, 1
- ; Y( moveAmount, 5 )
- ; X( moveAmount, -3 )
- ; }
- ; else
- If GetKeyState("LCtrl", "LButton")
- {
- Sleep, 1
- Y( moveAmount, 2.5 )
- X( moveAmount, -1 )
- }
- else
- break
- }
- }
- }
- m92_autofire()
- {
- global _m92auto
- if _m92auto
- {
- Loop
- {
- If GetKeyState("LButton", "P")
- {
- SendInput {LButton DownTemp}
- Sleep 1
- mouseXY(0, 70)
- Sleep 1
- SendInput {LButton Up}
- Sleep 25
- }
- else
- break
- }
- }
- }
- mouseXY( x, y )
- {
- DllCall( "mouse_event", int, 1, int, x, int, y, uint, 0, uint, 0 )
- }
- Y( a, y ) ; Value with a minus sign - move the mouse up.
- { ; Value without a minus sign - move the mouse down.
- DllCall( "mouse_event", int, 1, int, x, int, y, uint, 0, uint, 0 )
- }
- X( b, x ) ; Value with a minus sign - move the mouse to the left.
- { ; Value without a minus sign - move the mouse to the right.
- DllCall( "mouse_event", int, 1, int, x, int, y, uint, 0, uint, 0 )
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement