Code: Select all
Process, Priority, , A
SetKeyDelay, -1, -1
SetMouseDelay, -1
SetDefaultMouseSpeed, 0
IniRead, xHP50, USTAWIENIA.ini, HP50, xHP50
IniRead, yHP50, USTAWIENIA.ini, HP50, yHP50
IniRead, HP50color, USTAWIENIA.ini, HP50, HP50color
IniRead, xRING, USTAWIENIA.ini, RING, xRING
IniRead, yRING, USTAWIENIA.ini, RING, yRING
IniRead, xBP, USTAWIENIA.ini, BP, xBP
IniRead, yBP, USTAWIENIA.ini, BP, yBP
IniRead, MANArhot, USTAWIENIA.ini, MANArhot, MANArhot
Hotkey, %MANArhot%, MyHotkey
PixelGetColor, Check50, %xHP50%, %yHP50%, RGB
Loop {
ImageSearch, aXXX, bYYY, 0, 0, A_ScreenWidth, A_ScreenHeight, riing.PNG
PixelGetColor, Check50, %xHP50%, %yHP50%, RGB
}
MyHotkey:
{
{
ImageSearch, aXX, bYY, 0, 0, A_ScreenWidth, A_ScreenHeight, utama.PNG
if ErrorLevel{
BlockInput MouseMove
MouseGetPos, X, Y
if (A_Cursor != "Arrow") {
Click, Right
}
MouseClickDrag, L, %aXXX%, %bYYY%, %xRING%, %yRING%
MouseMove, %X%, %Y%
BlockInput, MouseMoveOff
sleep 322
}
else
{
if (Check50 = HP50color){
BlockInput MouseMove
MouseGetPos, X, Y
if (A_Cursor != "Arrow") {
Click, Right
}
MouseClickDrag, L, %xRING%, %yRING%, %xBP%, %yBP%
MouseMove, %X%, %Y%
BlockInput, MouseMoveOff
sleep 1210
}
else {
}
}
}
}
return