It used to work, same script... when it was unpaused by pressing prnt scr it closed the file
ive also tried "5AMULETO.exe" (with the """"), and it still doesnt work
help !!!!
Code: Select all
#NoEnv
SendMode Input
SetWorkingDir %A_ScriptDir%
SetNumLockState, AlwaysOn
SetCapsLockState, AlwaysOff
DetectHiddenWindows, On
pause
Suspend
WinClose, 5AMULETO.exe
If WinActive("ahk_class Qt5QWindowOwnDCIcon")
Loop
{
imagesearch,x,y,0,0,1920,1080, *25 amulet.png
if errorlevel=0
{
send {Insert}
sleep 200
}
imagesearch,x,y,0,0,1920,1080, *25 ring.png
if errorlevel=0
{
send {Delete}
sleep 200
}
}
WinClose, 5AMULETO.exe
PrintScreen::
pause
Suspend
return