Problem with WaitPixelColor and Timeout

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
Guillaume777
Newbie
Posts: 18
Joined: Sun Dec 22, 2002 2:41 am

Problem with WaitPixelColor and Timeout

Post by Guillaume777 » Thu Dec 26, 2002 4:28 pm

When using WaitPixelColor ( or WaitRectChanged), the "Timeout" argument can't have a coma in it or the command acts as if the Timeout was 0 ( i.e. the command waits indefinitely ). I don't if this is a bug or not, but it sure took me some time to understand what was wrong with my macro :) .

FS

Post by FS » Thu Dec 26, 2002 6:05 pm

In Macro Scheduler the decimal separator is a period, nor a comma.

The comma separates the arguments of an instruction.

If you type:

WaitPixelColor>16777215,652,355,10,4

It will be as 4 was the last argument. If the timeout you like is 10,4 you must type 10.4 (with a period). If you use the comma the instruction has five arguments and it must not to.

Guillaume777
Newbie
Posts: 18
Joined: Sun Dec 22, 2002 2:41 am

Oups...

Post by Guillaume777 » Mon Dec 30, 2002 8:54 am

Oups, I meant period not comma... for example if you write WaitPixelColor>16777215,652,355,10.4 it will wait forever....

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