dhk走起
one := 0
two := 0
firstoptionstatus := "Disabled"
secondoptionstatus := "Disabled"
Gui, +AlwaysOnTop -Caption +Owner +LastFound +E0x20
Gui, Margin, 0, 0
Gui, Color, Grey
Gui, Font, cRed s30 bold, Arial
Gui, Add, Text, x13 y0 w500 h40, Recoil Reduce |
Gui, Font, cRed s30 bold, Arial
Gui, Add, Text, x330 y0 w200 h40 vfirstoptionstatus, %firstoptionstatus%
Gui, Add, Text, x13 y50 w500 h40, Auto-Fire |
Gui, Add, Text, x330 y50 w200 h40 vsecondoptionstatus, %secondoptionstatus%
WinSet, Transparent, 200
Gui, Show, x0 y800 h100 w530
;################################################# #################################
Hotkey, $LButton, Toggle
Hotkey, $*~LButton, Toggle
Numpad1::
Hotkey, $*~LButton, Toggle
one += 1
if Mod(one, 2) = 1{
firstoptionstatus := "Enabled"
GuiControl, +clime, firstoptionstatus
GuiControl, ,firstoptionstatus, %firstoptionstatus%
WinActivate, Tom Clancy's The Division
}
else{
firstoptionstatus := "Disabled"
GuiControl, +cred, firstoptionstatus
GuiControl, ,firstoptionstatus, %firstoptionstatus%
WinActivate, Tom Clancy's The Division
return
}
return
Numpad2::
Hotkey, $LButton, Toggle
two += 1
if Mod(two, 2) = 1{
secondoptionstatus := "Enabled"
GuiControl, +clime, secondoptionstatus
GuiControl, ,secondoptionstatus, %secondoptionstatus%
WinActivate, Tom Clancy's The Division
}
else{
secondoptionstatus := "Disabled"
GuiControl, +cred, secondoptionstatus
GuiControl, ,secondoptionstatus, %secondoptionstatus%
WinActivate, Tom Clancy's The Division
return
}
return
*~LButton::
if WinActive("ahk_exe TheDivision.exe")
{
while GetKeyState("LButton")
{
DllCall("mouse_event", uint, 1, int, 0, int, 2, uint, 1, int, 0)
Sleep, 50
}
}
return
LButton::
if WinActive("ahk_exe TheDivision.exe")
{
Loop
{
SetMouseDelay 30
Click
If (GetKeyState("LButton","P")=0)
Break
}
}
else{
Click
}
return