
Problem with WaitPixelColor and Timeout
Moderators: JRL, Dorian (MJT support)
-
- Newbie
- Posts: 18
- Joined: Sun Dec 22, 2002 2:41 am
Problem with WaitPixelColor and Timeout
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
.

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.
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.
-
- Newbie
- Posts: 18
- Joined: Sun Dec 22, 2002 2:41 am
Oups...
Oups, I meant period not comma... for example if you write WaitPixelColor>16777215,652,355,10.4 it will wait forever....