Академический Документы
Профессиональный Документы
Культура Документы
#InstallMouseHook
#InstallKeyBDHook
#UseHook On
;#IfWinNotActive, WARFRAME
; Suspend
SendMode Input
;Starting Definitions
AutoSpam = 0
AutoSpin = 0
AutoFire = 0
AutoBulletJump = 0
AutoMelee = 0
AutoReload = 0
PrimarySuspension=0
;Delay Definitions
AutoFireDelay=5
AbilityDelay=35
ControlFocus
;Primary Controller
F9::
Suspend
if (PrimarySuspension = 0) {
PrimarySuspension = 1
WinGet, ActiveId, ID, A
CreateWindow("OFF")
WinActivate, ahk_id %ActiveId%
} else if (PrimarySuspension = 1) {
PrimarySuspension = 0
WinGet, ActiveId, ID, A
CreateWindow("ON")
WinActivate, ahk_id %ActiveId%
}
return
;Toggle Controllers
-::
if (AutoSpam = 1) {
AutoSpam = 0
Gosub, AutoSpamOff
Send, {Click}
} else if (AutoSpam = 0) {
AutoSpam = 1
Gosub, AutoSpamOn
Send, {Click}
}
return
0::
if (AutoSpin = 1) {
AutoSpin = 0
Gosub, AutoSpinOff
Send, {Click}
} else if (AutoSpin = 0) {
AutoSpin = 1
Gosub, AutoSpinOff
Send, {Click}
}
return
9::
if (AutoFire = 1) {
AutoFire = 0
Gosub, AutoFireOff
Send, {Click}
} else if (AutoFire = 0) {
AutoFire = 1
Gosub, AutoFireOn
Send, {Click}
}
return
8::
if (AutoBulletJump = 1) {
AutoBulletJump = 0
Gosub, AutoBulletJumpOff
Send, {Click}
} else if (AutoBulletJump = 0) {
AutoBulletJump = 1
Gosub, AutoBulletJumpOn
Send, {Click}
}
return
7::
if (AutoMelee = 1) {
AutoMelee = 0
Gosub, AutoMeleeOff
Send, {Click}
} else if (AutoMelee = 0) {
AutoMelee = 1
Gosub, AutoMeleeOn
Send, {Click}
}
return
6::
if (AutoReload = 1) {
AutoReload = 0
Gosub, AutoReloadOff
Send, {Click}
} else if (AutoReload = 0) {
AutoReload = 1
Gosub, AutoReloadOn
Send, {Click}
}
return
;Notification Subroutines
AutoSpamOff:
CreateWindow("AutoSpam OFF")
return
AutoSpamOn:
CreateWindow("AutoSpam ON: Press F1 To Activate")
return
AutoSpamPrompt:
CreateWindow("Press A Key, Then Press Enter. Press - To End.")
return
AutoSpinOff:
CreateWindow("AutoSpin OFF")
return
AutoSpinOn:
CreateWindow("AutoSpin ON")
return
AutoFireOff:
CreateWindow("AutoFire OFF")
return
AutoFireOn:
CreateWindow("AutoFire ON")
return
AutoBulletJumpOff:
CreateWindow("AutoBulletJump OFF")
return
AutoBulletJumpOn:
CreateWindow("AutoBulletJump ON")
return
AutoMeleeOff:
CreateWindow("AutoMelee OFF")
return
AutoMeleeOn:
CreateWindow("AutoMelee ON")
return
AutoReloadOff:
CreateWindow("AutoReload OFF")
return
AutoReloadOn:
CreateWindow("AutoReload ON")
return
;Actions
;AutoSpam
*F1::
Gosub, AutoSpamPrompt
Input, SpammedKey, ,{Enter}
if (PrimarySuspension = 1) {
while (AutoSpam =1) {
Send, %SpammedKey%
Sleep, 110
}
}
return
;AutoSpin
*C::
if (AutoSpin = 1) {
Send, {LControl Down}
Sleep, 14
Send, e
Send, {Control Up}
}
return
;AutoFire
}
}
return
;AutoBulletJump
*LAlt::
if (AutoBulletJump = 1) {
Send, {Control Down}
Sleep, 30
Send, {Space}
Sleep, 3
Send, {Control Up}
Sleep, 80
}
return
;AutoMelee
*e::
if (AutoMelee = 1) {
while GetKeyState("e","p") {
Send, e
Sleep, 50
}
} else if (AutoMelee = 0) {
Send, e
}
return
;AutoReload
*LButton UP::
if (AutoReload = 0) {
MouseClick, left, , , , U
return
}
MouseClick, left, , , , U
Send, r
return
;GUI creation
CreateWindow(key) {
GetTextSize(key,35,Verdana,height,width)
bgTopPadding = 40
bgWidthPadding=100
bgHeight = % height + bgTopPadding
bgWidth = % width + bgWidthPadding
padding = 20
yPlacement = % A_ScreenHeight - bgHeight - padding
xPlacement = % A_ScreenWidth - bgWidth - padding
RemoveGui:
Gui, Destroy
return