Help with ahk script
Hi, could someone tell my why this code doesn't work?
(yeah, I'm pretty new to coding so don't judge too hard)
Saw this code somewhere and decided to give it a shot, but couldn't seem to get it to work.
^L::
Loop
{
PixelGetColor, red, 799, 773
sleep 0
if red = 0x1010E0
{
SendEvent {Shift}
}
}
How its supposed to work is I run the ahk file and hit ctrl+L to begin the loop. The program checks if my healthbar is dark red, and presses the shift (or nexus) key if it is.
The position for PixelGetColor will need to be changed every time you restart rotmg.
Thanks, any help world be appreciated!