WAIT command does not run in rep loop

WAIT command does not run in rep loop

Postby totalolage on Tue Sep 12, 2017 11:46 am

Code: Select all
RECT r; r.left=292; r.top=433; r.right=641; r.bottom=559;
rep
   out "starting watch"
   wait -1 -S "" rs r
   out "change occured"

Warning: The code possibly is invalid because some important characters (tabs, spaces) disappeared. Read more.

(rs is declared correctly)

outputs:
starting watch
*screen change occurs*
change occured
starting watch

then no matter how much the screen region changes, no change is detected.
totalolage
 
Posts: 1
Joined: Tue Sep 12, 2017 11:43 am

Re: WAIT command does not run in rep loop

Postby Gintaras on Tue Sep 12, 2017 11:55 am

Move the first line into the loop. Because scan modifies the RECT variable.
Gintaras
Site Admin
 
Posts: 10370
Joined: Thu Dec 19, 2002 7:36 pm
Location: Lithuania


Return to Bug Reports

Who is online

Users browsing this forum: No registered users and 1 guest