02-15-2024, 05:41 AM
With wait -S use err.
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.
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.