-
Member
is there any auto vaal haste?
found the only thing resembling what im looking for. Its from 2015 and does not work. But something like this to detect when charges are full and uses right away. the x,y was made for full windowed screen 1366x768
²::
x:= 1027 ;x coordinate of pixel to check.
y:= 743 ;y coordinate of pixel to check.
targetcolor:= 0x293ACA ;color to be matched in hexadecimal blue-green-red (BGR) format.
Loop
{
PixelGetColor, currentcolor, x, y
if (currentcolor=targetcolor)
{
Send {a}
}
else
{
}
}
-
Member
Google how to use a pixel finding function in either AutoIT or AHK and then Click X/Y.
-
Member
Originally Posted by
LazyRoot
Google how to use a pixel finding function in either AutoIT or AHK and then Click X/Y.
holy, youre so smart and helpful. why didnt i think of that before? thanks so much for that. because of you i ended up enrolling into computer science at my local college. I am just about to graduate and got the lead position at NASA already lined up. and to think, all it took was one guy saying to Google how to code. Where will my next adventure take me?
Thanks again!
-
Post Thanks / Like - 1 Thanks
S0ul3r (1 members gave Thanks to imfap247 for this useful post)
-
Active Member
Yeah, AHK is totally advanced coding..
-
Member
Originally Posted by
imfap247
holy, youre so smart and helpful. why didnt i think of that before? thanks so much for that. because of you i ended up enrolling into computer science at my local college. I am just about to graduate and got the lead position at NASA already lined up. and to think, all it took was one guy saying to Google how to code. Where will my next adventure take me?
Thanks again!
Love this post
-
Member
You need to check what targetcolor should be, as it seems to have changed. For that just add in a line to tell you the current value of the pixel you want.
Untested example:
x:= 1027 ;x coordinate of pixel to check.
y:= 743 ;y coordinate of pixel to check.
targetcolor:= 0x293ACA ;color to be matched in hexadecimal blue-green-red (BGR) format.
Loop
{
PixelGetColor, currentcolor, x, y
MsgBox The color at the current cursor position is %currentcolor%.
if (currentcolor=targetcolor)
{
Send {a}
}
else
{
}
}
Note the "MsgBox" line - that makes it tell you the current color of the pixel.
Just write that down, replace the 0x293ACA with what you found, and remove the MsgBox again.
If the color constantly changes (because the icon is animated or something), try changing x and y to point to a pixel that doesn't.