Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pixels
#1
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 Smile Thanks
#2
Code:
Copy      Help
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
#3
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
#4
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
#5
Change the codeso it clicks your button where it says break...
Well thats all for now, 3M


Forum Jump:


Users browsing this thread: 1 Guest(s)