Paulypaul Posted August 7, 2012 Share Posted August 7, 2012 Hi folks,I'm by no means an expert; however, i can muddle through computing related things quite well having invested time in my younger days figuring things out and experimenting. I'm setting myself the task of writing a simple executable to automate some of the repetitive processes performed at work. I have previously used AutoMate which is superbly simple; however, the cost of licenses renders this option out.One feature i used in automate which aided in overcoming a number of obstacles was to wait for a specific pixel to meet a colour requirement before a task continued. I think the command im looking for is described here " but would appreciate any further assistance./If i wanted a script to wait for a specific pixel to change colour before continuation of a task (e.g. 500,500 turning yellow) how would i ascertain the exact co-ordinates and colour code and turn this into a working line of code?As i say, im not great at this but i feel if i can get my head around this part, achieving my initial aim should be quite straight forward so if anyone is able to advice id appreciate it!A simple example of how i might use this is as follows:Func F5() MouseClick("left", 250, 150, 1, 0) Send("T{tab}N{tab}") Sleep("1000") MouseClick("left", 450, 450, 1, 0) WaitPixel... MouseClick("left", 650, 650, 1, 0) WaitPixel... Send("Test"{tab}{enter}") EndFuncThanks in advance for any advice.Paul Link to comment Share on other sites More sharing options...
JohnOne Posted August 8, 2012 Share Posted August 8, 2012 You can determine the coordinates of a pixel in the same fashion you determined the mouseclick coordinates. A Do..Until loop with a condition of PixelGetColor() would do the wait. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now