Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
wait for screen activity
#1
i would like part of the macro i am trying to create to wait until there is a change in the screen activity before continuing to the next step

for example, a program is running and when it is complete something on the the screen changes, i would like to wait for this amount of time

i am having problems because the program that i am waiting for has windows within windows and quick macros only sees the top window, so i can not do something like...wait for windows X to close then continue

or can i wait for the color of this position to change?
#2
Look in floating toolbar -> windows,controls -> Find image,wait.
Try "Wait until something changes".
#3
thank you

i actually found this to be more useful

;/
function ^wt RECT&r

;Waits until something changes in the specified rectangle on the screen.

;wt - max wait time, s. Error on timeout. Use 0 to wait forever.
;r - variable that contains screen coordinates of the rectangle.

;EXAMPLE
;RECT r
;r.left=100; r.top=100; r.right=r.left+100; r.bottom=r.top+100
;WaitForRectImageChange 0 r
;mes "changed"


GdiObject bm
if(!CaptureImageOnScreen(r.left r.top r.right-r.left r.bottom-r.top "" bm)) end ES_FAILED
int t1=GetTickCount
rep
,0.1
,if(!scan(bm 0 r 0)) break
,if(wt and GetTickCount-t1>=wt*1000) end "wait timeout"


Forum Jump:


Users browsing this thread: 1 Guest(s)