about colors
Moderators: Dorian (MJT support), JRL
about colors
first could some paste link to some color tutorial and having hard time understading the color thingy... Can color check scan whole screen for spesific color and then move mouse there ? And yes im making trainer to a game
Depending on how the screen is displayed... the answer is possibly yes.
However, consider this: to scan every pixel in a window, even one as small as 640x480 would require 307200 individual checks.
It may be possible to acomplish what you're doing by "sample" checking - that is, only scan every 5 or 10 pixels ... then when you get to the right of the screen, move down 5 or 10 pixels and try again. Even every 5x5 would take 12288 "checks" on a 640x480 screen, so running an effecient check depends specifically on what you're trying to do, and what you can get away with.
Check out http://www.mjtnet.com/usergroup/viewtopic.php?p=1567 - someone had a similar "loop" ... you can use the same principle, but using GetPixelColor checks of mousemove, etc.
However, consider this: to scan every pixel in a window, even one as small as 640x480 would require 307200 individual checks.
It may be possible to acomplish what you're doing by "sample" checking - that is, only scan every 5 or 10 pixels ... then when you get to the right of the screen, move down 5 or 10 pixels and try again. Even every 5x5 would take 12288 "checks" on a 640x480 screen, so running an effecient check depends specifically on what you're trying to do, and what you can get away with.
Check out http://www.mjtnet.com/usergroup/viewtopic.php?p=1567 - someone had a similar "loop" ... you can use the same principle, but using GetPixelColor checks of mousemove, etc.