Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Image disappears in if
#2
With wait -S use err.
 
Code:
Copy      Help
int w=win("" "MozillaWindowClass")
int timeout = 0
wait 2 -S "image:hC554A03F" w 0 16
err timeout = 1
if timeout
,out "did not disappear in 2 seconds"
else
,out "disappeared"

Or, if don't need to wait, use scan instead of wait -S. In the Find image dialog select Find and uncheck Error if not found.


Messages In This Thread
Image disappears in if - by Pontios16 - 02-15-2024, 12:52 AM
RE: Image disappears in if - by Gintaras - 02-15-2024, 05:41 AM
RE: Image disappears in if - by Pontios16 - 02-15-2024, 10:04 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)