Hi. If you GetPixelColor of things, such as in a game, instead of moving the window and then getting the colors there, is it possible to let it not matter where the screen is. I thought you had to use the ADD> command to do this im just not sure? Example please? Thank you.
Regards,
Mark
Read colors no matter where the screen is..
Moderators: JRL, Dorian (MJT support)
-
- Pro Scripter
- Posts: 63
- Joined: Sat Dec 25, 2004 3:23 pm
-
- Automation Wizard
- Posts: 1101
- Joined: Fri Jan 07, 2005 5:55 pm
- Location: Somewhere else on the planet
You have to get the X Y position of the window, and then add those X Y values to the X Y values within the window where you want to get the pixel color
If X and Y are the coordinates in the window of the pixel for which you want to get the color
GetWindowPos>MyWindow,WX,WY
Add>X,WX
Add>Y,WY
GetPixelColor>X,Y,PC
If X and Y are the coordinates in the window of the pixel for which you want to get the color
GetWindowPos>MyWindow,WX,WY
Add>X,WX
Add>Y,WY
GetPixelColor>X,Y,PC
-
- Pro Scripter
- Posts: 63
- Joined: Sat Dec 25, 2004 3:23 pm