how to

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
Sean_5

how to

Post by Sean_5 » Fri Oct 15, 2004 5:02 am

ok, instead of moving a window to get a certain pixel and then making the mouse move there, is there a way to find the pixel color without moving the screen? Even if I move the screen to where ever I want could MS find that pixel color and click on it? Also I wanted to know how do I have the mouse mouve quickly to a spot click on it, then mouse back to the spot it was in? .. Are there any other sites that has macro scheduler tutorials or anything so I can make programs to play online games?

Lumumba

Post by Lumumba » Fri Oct 15, 2004 6:50 am

While it sometimes makes sense to move a screen (eg. outside the window next to you), I assume you've meant to move a window on the screen and not the screen itself :D

Use the forums search function to get the sample code. Keyword: GetPixelColor.

a) set x var
b) set y var
c) set colour value
d) check pix at x,y coord
e) if colour value at x,y is matching - have a party
f) if not, increase the x var with 1 to move to the following pixel, back to d)
g) if the max x var has been used increase y var with 1, reset x var to 0 back to d)
h) if max x,y var has been reached without matching the exp. colour, stop cheating.

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