Hello everyone, I'm having a few problems with a macro I have 'written' and was wondering if anyone had some ideas!
here is a screen grab.
macro1.bmp
Essentially what I'm trying to do is this. We have automated software to post ads for us, and we use dialup to post. the posting software is automated via the scheduled tasks and every 2 mins a "captcha challenge" window appears. the macro firstly is supposed to recognize when 19 of these windows appear, when 19 have appeared, it moves on to see if another "captcha challenge" window appears after a 20 second break, it looks for this last window every second for 45 seconds (it looks for this window as sometimes the automated captcha is invalid and it tries again), if no window appears it then moves to the next step.
Next, it tries to focus the window "easyAd Poster etc" 3 times. (is there a way to make the task fail if this doesnt happen?)
Then, it brings the window on top, and the mouse moves to the position of the pause button in the easyad software (again I would like to retry this step 10 times and make the task fail if it doesnt happen)
Then, the mouse left clicks to activate the pause (again, I would like this to try 10 times and fail the task if it doesnt happen)
The macro then disconnects the dial up, reconnects and with a left click of the mouse it continues "easyad".
The problems I am having are these. Firstly how to trigger the macro so it works automatically, ie triggered by the "captcha challenge" window, without EVERY "captcha challenge"window triggering the macro. Secondly, how to make taks fail if something doesnt happen, and thirdly how to end the macro.
I think I'm nearly halfway there but would appreciate some help.
Thanks in advance