Code: Select all
#HotkeyInterval 99000000
#KeyHistory 0
#MaxHotkeysPerInterval 99000000
#NoEnv
#Persistent
#SingleInstance force
DetectHiddenWindows, On
ListLines, Off
SendMode, Input
SetBatchLines, 10ms
SetKeyDelay, 0, 50
SetWinDelay, 0
;---------------------------------------------------------------------------------------------------------------------------------------;
; |Menu| ;
;---------------------------------------------------------------------------------------------------------------------------------------;
Menu, Tray, NoStandard
Menu, Tray, Add, Exit
;---------------------------------------------------------------------------------------------------------------------------------------;
; |Mouse down P| ;
;---------------------------------------------------------------------------------------------------------------------------------------;
p0:
Return
p1:
DllCall("mouse_event", uint, 1, int, 0, int, 1, uint, 0, int, 0) ;
Return
p2:
DllCall("mouse_event", uint, 1, int, 0, int, 2, uint, 0, int, 0) ;
Return
p3:
DllCall("mouse_event", uint, 1, int, 0, int, 3, uint, 0, int, 0) ;
Return
p4:
DllCall("mouse_event", uint, 1, int, 0, int, 4, uint, 0, int, 0) ;
Return
p5:
DllCall("mouse_event", uint, 1, int, 0, int, 5, uint, 0, int, 0) ;
Return
p6:
DllCall("mouse_event", uint, 1, int, 0, int, 6, uint, 0, int, 0) ;
Return
p7:
DllCall("mouse_event", uint, 1, int, 0, int, 7, uint, 0, int, 0) ;
Return
p8:
DllCall("mouse_event", uint, 1, int, 0, int, 8, uint, 0, int, 0) ;
Return
p9:
DllCall("mouse_event", uint, 1, int, 0, int, 9, uint, 0, int, 0) ;
Return
p10:
DllCall("mouse_event", uint, 1, int, 0, int, 10, uint, 0, int, 0) ;
Return
;---------------------------------------------------------------------------------------------------------------------------------------;
; |Battlefield 2| ;
;---------------------------------------------------------------------------------------------------------------------------------------;
#IfWinActive, ahk_exe BF2.exe
*$LButton::
Loop
{
GetKeyState, State, LButton, P
if (state = "D")
{
Send, {LButton Down}
Sleep, 35
Send, {LButton Up}
Sleep, 35
Random, MouseDown, 0, 1
gosub p%MouseDown%
}
else if (state = "U")
{
break
}
}
Return
*$c::
Loop
{
GetKeyState, State, c, P
if (state = "D")
{
Random, Places, 5, 500
Random, Places2, 10, 1000
MouseMove %Places%, %Places2%
}
else if (state = "U")
{
break
}
}
Return
*$Space::
Loop
{
GetKeyState, State, Space, P
if (state = "D")
{
Send, {Space Down}
Sleep, 205
Send, {Space Up}
Sleep, 205
}
else if (state = "U")
{
break
}
}
Return
;---------------------------------------------------------------------------------------------------------------------------------------;
; |S.T.A.L.K.E.R.: Shadow of Chernobyl| ;
;---------------------------------------------------------------------------------------------------------------------------------------;
#IfWinActive, ahk_exe XR_3DA.exe
*$LButton::
Loop
{
GetKeyState, State, LButton, P
if (state = "D")
{
Click, Left
Sleep, 50
Random, MouseDown, 0, 1
gosub p%MouseDown%
}
else if (state = "U")
{
break
}
}
Return
*$c::
Loop
{
GetKeyState, State, c, P
if (state = "D")
{
Random, Places, 5, 500
Random, Places2, 10, 1000
MouseMove %Places%, %Places2%
}
else if (state = "U")
{
break
}
}
Return
*$Space::
Loop
{
GetKeyState, State, Space, P
if (state = "D")
{
Send, {Space Down}
Sleep, 205
Send, {Space Up}
Sleep, 205
}
else if (state = "U")
{
break
}
}
Return
;---------------------------------------------------------------------------------------------------------------------------------------;
; |Alien Swarm: Reactive Drop| ;
;---------------------------------------------------------------------------------------------------------------------------------------;
#IfWinActive, ahk_exe reactivedrop.exe
*$LButton::
Loop
{
GetKeyState, State, LButton, P
if (state = "D")
{
Click, Left
Sleep, 20
}
else if (state = "U")
{
break
}
}
Return
*$c::
Loop
{
GetKeyState, State, c, P
if (state = "D")
{
Random, Places, 5, 500
Random, Places2, 10, 1000
MouseMove %Places%, %Places2%
}
else if (state = "U")
{
break
}
}
Return
*$Space::
Loop
{
GetKeyState, State, Space, P
if (state = "D")
{
Send, {Space Down}
Sleep, 35
Send, {Space Up}
Sleep, 35
}
else if (state = "U")
{
break
}
}
Return
;---------------------------------------------------------------------------------------------------------------------------------------;
; |Counter-Strike: Global Offensive| ;
;---------------------------------------------------------------------------------------------------------------------------------------;
#IfWinActive, ahk_exe csgo.exe
*$LButton::
Loop
{
GetKeyState, State, LButton, P
if (state = "D")
{
Click, Left
Sleep, 20
Random, MouseDown, 0, 1
gosub p%MouseDown%
}
else if (state = "U")
{
break
}
}
Return
*$c::
Loop
{
GetKeyState, State, c, P
if (state = "D")
{
Random, Places, 5, 500
Random, Places2, 10, 1000
MouseMove %Places%, %Places2%
}
else if (state = "U")
{
break
}
}
Return
*$Space::
Loop
{
GetKeyState, State, Space, P
if (state = "D")
{
Send, {Space Down}
Sleep, 35
Send, {Space Up}
Sleep, 35
}
else if (state = "U")
{
break
}
}
Return
;---------------------------------------------------------------------------------------------------------------------------------------;
; |RimWorld| ;
;---------------------------------------------------------------------------------------------------------------------------------------;
#IfWinActive, ahk_exe RimWorldWin64.exe
*$LButton::
Loop
{
GetKeyState, State, LButton, P
if (state = "D")
{
Send, {LButton Down}
Sleep, 35
Send, {LButton Up}
Sleep, 35
}
else if (state = "U")
{
break
}
}
Return
*$RButton::
Loop
{
GetKeyState, State, RButton, P
if (state = "D")
{
Send, {RButton Down}
Sleep, 35
Send, {RButton Up}
Sleep, 35
}
else if (state = "U")
{
break
}
}
Return
;---------------------------------------------------------------------------------------------------------------------------------------;
; |Alien Shooter| ;
;---------------------------------------------------------------------------------------------------------------------------------------;
#IfWinActive, ahk_exe AlienShooter.exe
*$LButton::
Loop
{
GetKeyState, State, LButton, P
if (state = "D")
{
Send, {LButton Down}
Sleep, 20
Send, {LButton Up}
Sleep, 40
Send, {RButton Down}
Sleep, 20
Send, {RButton Up}
Sleep, 40
}
else if (state = "U")
{
break
}
}
Return
;---------------------------------------------------------------------------------------------------------------------------------------;
; |Brutal Doom| ;
;---------------------------------------------------------------------------------------------------------------------------------------;
#IfWinActive, ahk_exe gzdoom.exe
*$LButton::
Loop
{
GetKeyState, State, LButton, P
if (state = "D")
{
Send, {LButton Down}
Sleep, 40
Send, {LButton Up}
Sleep, 40
}
else if (state = "U")
{
break
}
}
Return
*$c::
Loop
{
GetKeyState, State, c, P
if (state = "D")
{
Random, Places, 5, 500
Random, Places2, 10, 1000
MouseMove %Places%, %Places2%
}
else if (state = "U")
{
break
}
}
Return
*$Space::
Loop
{
GetKeyState, State, Space, P
if (state = "D")
{
Send, {Space Down}
Sleep, 35
Send, {Space Up}
Sleep, 35
}
else if (state = "U")
{
break
}
}
Return
;---------------------------------------------------------------------------------------------------------------------------------------;
; |Counter-Strike: Source| ;
;---------------------------------------------------------------------------------------------------------------------------------------;
#IfWinActive, ahk_exe hl2.exe
*$LButton::
Loop
{
GetKeyState, State, LButton, P
if (state = "D")
{
Click, Left
Random, shoot, 20, 32
Sleep, %shoot%
Random, MouseDown, 0, 1
gosub p%MouseDown%
}
else if (state = "U")
{
break
}
}
Return
*~$MButton::
Send, t
Sleep, 35
Send, b
Sleep, 35
Send, {Numpad6}
Sleep, 35
Send, {Numpad2}
Sleep, 35
Send, b
Sleep, 35
Send, {Numpad6}
Sleep, 35
Send, {Numpad6}
Sleep, 35
Send, b
Sleep, 35
Send, {Numpad6}
Sleep, 35
Send, {Numpad4}
Sleep, 35
Send, b
Sleep, 35
Send, {Numpad6}
Sleep, 35
Send, {Numpad5}
Sleep, 35
Send, b
Sleep, 35
Send, {Numpad6}
Sleep, 35
Send, {Numpad3}
Sleep, 35
Send, b
Sleep, 35
Send, {Numpad6}
Sleep, 35
Send, {Numpad3}
Sleep, 35
Send, b
Sleep, 35
Send, {Numpad6}
Sleep, 35
Send, {Numpad7}
Sleep, 35
Send, {Numpad0}
Return
*$c::
Loop
{
GetKeyState, State, c, P
if (state = "D")
{
Random, Places, 5, 500
Random, Places2, 10, 1000
MouseMove %Places%, %Places2%
}
else if (state = "U")
{
break
}
}
Return
*$f::
Send, {VK34SC005}
Sleep, 15
Send, {LButton}{LButton}{LButton}
Sleep, 555
Send, {LButton}{LButton}{LButton}{LButton}{LButton}
Sleep, 15
Send, {LButton Up}
Return
*$Space::
Loop
{
GetKeyState, State, Space, P
if (state = "D")
{
Send, {Space}
Sleep, 20
}
else if (state = "U")
{
break
}
}
Return
;---------------------------------------------------------------------------------------------------------------------------------------;
; |Counter-Strike 1.6| ;
;---------------------------------------------------------------------------------------------------------------------------------------;
#IfWinActive, ahk_exe hl.exe
*$LButton::
Loop
{
GetKeyState, State, LButton, P
if (state = "D")
{
Click, Left
Random, shoot, 20, 32
Sleep, %shoot%
Random, MouseDown, 0, 1
gosub p%MouseDown%
}
else if (state = "U")
{
break
}
}
Return
*~$MButton::
Send, t
Sleep, 36
Send, b
Sleep, 36
Send, {Numpad6}
Sleep, 45
Send, b
Sleep, 36
Send, {Numpad7}
Sleep, 36
Send, b
Sleep, 36
Send, {Numpad8}
Sleep, 36
Send, {Numpad2}
Sleep, 36
Send, b
Sleep, 36
Send, {Numpad8}
Sleep, 36
Send, {Numpad1}
Sleep, 36
Send, b
Sleep, 36
Send, {Numpad8}
Sleep, 36
Send, {Numpad3}
Sleep, 36
Send, b
Sleep, 36
Send, {Numpad8}
Sleep, 36
Send, {Numpad4}
Sleep, 36
Send, b
Sleep, 36
Send, {Numpad8}
Sleep, 36
Send, {Numpad5}
Sleep, 36
Send, b
Sleep, 36
Send, {Numpad8}
Sleep, 36
Send, {Numpad6}
Sleep, 36
Send, b
Sleep, 36
Send, {Numpad8}
Sleep, 36
Send, {Numpad7}
Sleep, 36
Send, {Numpad0}
Sleep, 36
Send, {Numpad0}
Sleep, 36
Send, {Numpad0}
Return
*$c::
Loop
{
GetKeyState, State, c, P
if (state = "D")
{
Random, Places, 5, 500
Random, Places2, 10, 1000
MouseMove %Places%, %Places2%
}
else if (state = "U")
{
break
}
}
Return
*$f::
Send, {VK34SC005}
Sleep, 15
Send, {LButton}{LButton}{LButton}
Sleep, 555
Send, {LButton}{LButton}{LButton}{LButton}{LButton}
Sleep, 15
Send, {LButton Up}
Return
*$Space::
Loop
{
GetKeyState, State, Space, P
if (state = "D")
{
Send, {Space}
Sleep, 20
}
else if (state = "U")
{
break
}
}
Return
;---------------------------------------------------------------------------------------------------------------------------------------;
; |Call of Duty 4: Modern Warfare| ;
;---------------------------------------------------------------------------------------------------------------------------------------;
#IfWinActive, ahk_exe iw3mp.exe
*$LButton::
Loop
{
GetKeyState, State, LButton, P
if (state = "D")
{
Send, {LButton Down}
Sleep, 25
Send, {LButton Up}
Random, shoot, 50, 90
Sleep, %shoot%
Random, MouseDown, 3, 7
gosub p%MouseDown%
}
else if (state = "U")
{
break
}
}
Return
*$c::
Loop
{
GetKeyState, State, c, P
if (state = "D")
{
Random, Places, 5, 500
Random, Places2, 10, 1000
MouseMove %Places%, %Places2%
}
else if (state = "U")
{
break
}
}
Return
*$Space::
Loop
{
GetKeyState, State, Space, P
if (state = "D")
{
Send, {Space Down}
Sleep, 25
Send, {Space Up}
Sleep, 25
}
else if (state = "U")
{
break
}
}
Return
*~$v::
Loop
{
GetKeyState, State, Space, P
if (state = "D")
{
Send, {v Down}
Sleep, 25
Send, {v Up}
Sleep, 25
}
else if (state = "U")
{
break
}
}
Return
*$b::
Loop
{
GetKeyState, State, Space, P
if (state = "D")
{
Send, {v Down}
Sleep, 25
Send, {v Up}
Sleep, 25
}
else if (state = "U")
{
break
}
}
Return
;---------------------------------------------------------------------------------------------------------------------------------------;
; |Left 4 Dead 2| ;
;---------------------------------------------------------------------------------------------------------------------------------------;
#IfWinActive, ahk_exe left4dead2.exe
*$LButton::
Loop
{
GetKeyState, State, LButton, P
if (state = "D")
{
MouseClick, left
Sleep, 20
}
else if (state = "U")
{
break
}
}
Return
*$c::
Loop
{
GetKeyState, State, c, P
if (state = "D")
{
Random, Places, 5, 500
Random, Places2, 10, 1000
MouseMove %Places%, %Places2%
}
else if (state = "U")
{
break
}
}
Return
*$Space::
Loop
{
GetKeyState, State, Space, P
if (state = "D")
{
Send, {Space}
Sleep, 40
}
else if (state = "U")
{
break
}
}
Return
*~$F5::
Send, {F4}
Sleep, 150
SendRaw, say !sm_execcfg mapconfig/maps/.cfg
Return
#IfWinActive
;------------------------------------------------------------------;
; |Exit| ;
;------------------------------------------------------------------;
Exit:
ExitApp