Posts: 16
Threads: 8
Joined: May 2006
Hello i want to count how many times this color 0xFFFFFF appears at this spot 317 468 in a window i want it to see it 49 times then on the 50th i want to click a button is this possible and if so how.. i hope i have explained what i need in the right way so u can understand
Thanks
Posts: 11,935
Threads: 138
Joined: Dec 2002
int i
int h=win("window name" "window class")
i=0
rep
,wait 0 C 0xFFFFFF 317 468 h ;;wait for white
,i+1
,;out i
,if(i=50) break
,wait 0 -C 0xFFFFFF 317 468 h ;;wait for other color
;here add command to click button
Posts: 16
Threads: 8
Joined: May 2006
Hi that doesn't do what i want, i have a window that white pops up all the time i want to just count it 49 times then i want to click a button after it has popped up the 50th time i hope u can understand what i want.
the code u just gave me clicks the button everytime the color disappears..the only time i want to click the button is on the 50th time the color white has been on the window .
thanks
Posts: 175
Threads: 43
Joined: Jun 2004
I think the code is exactly what your looking for. Just add the code for button clicking. Just make sure you didn't put a comma or tab in front of the code so that it isn't in the "rep" block.
Matt B
Posts: 69
Threads: 19
Joined: Dec 2005
Change the codeso it clicks your button where it says break...
Well thats all for now, 3M