boiler wrote: ↑29 Apr 2024, 19:44
See the comments. Depending on your answers, some modifications would be necessary.
Code: Select all
loop {
Pixelgetcolor, Color, 1275, 287 ; where did you get these coordinates? are they relative to the active window or the screen?
if (Color = 0x525763) ; where did you get this color? is it BGR or is it really in RGB format?
Send, {F5} ; what’s supposed to happen after this? stop or keep checking?
}
return
---------------------------------------------------------------------------------------//----------------------------------------------------------------------------
where did you get these coordinates? are they relative to the active window or the screen? // Full screen client
where did you get this color? is it BGR or is it really in RGB format? // RGB
what’s supposed to happen after this? stop or keep checking? // continue checking if the color changes, stop clicking the key
I'm using Window Spy for AHKv2 to have this data.
WINDOWN TITLE< CLASS AND PROCESS:
Tibia - Finn Kieran
ahk_class Qt5158QWindowOwnDCIcon
ahk_exe client.exe
ahk_pid 10468
ahk_id 2099580
***************
MOUSE POSITION:
Screen: 330, 14
Window: 330, 14
Client: 329, 13 (default)
Color: 272727 (Red=27 Green=27 Blue=27)
I don't really understand how the program works, but I'm trying to make it work as much as possible.