Sign in to follow this  
Followers 0
Paulypaul

WaitPixel Advice

2 posts in this topic

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}")
EndFunc

Thanks in advance for any advice.

Paul

Share this post


Link to post
Share on other sites



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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0