Code:
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
;#Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
#SingleInstance force ; Don't need multiple script copies
WinActivate, Path of Exile ahk_class POEWindowClass
#MaxThreadsPerHotkey 2
;~ -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
;~ Ingame Overlay
;~ -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Gui 2:Color, 0X130F13
;Gui 2:+LastFound +AlwaysOnTop +ToolWindow
Gui 2:+LastFound +ToolWindow
;WinSet, TransColor, 0X130F13
WinSet, TransColor, off
Gui 2: -Caption
Gui 2:Font, bold cFFFFFF S10, Arial
Gui 2:Add, Text, x+1 y+2.5 BackgroundTrans vT1, Detonate: OFF
IfWinExist, ahk_class POEWindowClass
{
;WinGetPos, X, Y, Width, Height
myvarX:=a_screenwidth/2
myvarY:=a_screenheight -90
Gui 2: Show, x%myvarX% y%myvarY%
}
return
~=::
if (detonating) {
detonating := 0
settimer, detonateloop, off
GuiControl, 2:, T1, Detonate: OFF
} else {
detonating := 1
settimer, detonateloop, %Tick%
GuiControl, 2:, T1, Detonate: ON
}
return
detonateloop:
IfWinActive, ahk_class POEWindowClass
{
if (GetKeyState("shift", "p")){
return
}else{
PixelSearch, MineX,MineX, 584,514,675,547, 0xC83725,5, Fast RGB ;deotnate
if ErrorLevel{
PixelSearch, MineX,MineX, 643,518,677,546, 0xCB352A,5, Fast RGB ;deotnate delve
if ErrorLevel
return
else
send {D}
;Click right
}
else
send {D}
;Click right
}
}
return