about colors

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
grem

about colors

Post by grem » Mon Dec 20, 2004 3:54 pm

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

User avatar
Captive
Macro Veteran
Posts: 213
Joined: Sun Oct 20, 2002 8:37 pm
Location: Colorado, USA

Post by Captive » Mon Dec 20, 2004 11:38 pm

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.

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts