Char's questions

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Me_again
Automation Wizard
Posts: 1101
Joined: Fri Jan 07, 2005 5:55 pm
Location: Somewhere else on the planet

Post by Me_again » Sun Nov 25, 2007 6:52 pm

Char wrote:but how long does the scanning take for ..umm for example

1024*768 screen
If the colored area you are looking for is always bigger than a single pixel, you can speed up the scanning significantly by incrementing x and y in steps equal to the minimum size of the colored area. For instance if the area is always equal to, or bigger than, 2 x 2 pixels you can increment x and y by 2 without missing the target, and increase the scanning speed approximately 4 x. If the target is equal to or bigger than 10 x 10 pixels, then a 100 x speed increase is possible, and so on.

If you can define a limited area of the screen to search then that's another speed up possibility.

(Nice one Rain! Combined both questions in one macro :lol: )

User avatar
Marcus Tettmar
Site Admin
Posts: 7380
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Mon Nov 26, 2007 9:07 am

Faster way - use the Pixel Search library:
http://www.mjtnet.com/plugins.htm
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

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