Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Checking status of a button every specific period of time to force it
#4
Example with Paint program.
To test:
Run Paint.
Run this macro.
In Paint select pure red color using the Edit Colors dialog. Must be red 255, green 0, blue 0.
Draw red at point 15 162 relative to the client area. The macro should print "red".
Undo. The macro should print "not red".
Redo and Undo to test repeating.

Macro Macro122
Code:
Copy      Help
int w=win("Untitled - Paint" "MSPaintApp")
rep
,err-
,
,;wait for red pixel
,wait 0 C 0xFF 15 162 w 1
,out "red"
,
,;here add code to click the button
,
,;wait for not red pixel
,wait 0 -C 0xFF 15 162 w 1
,out "not red"
,
,err+
,,if(!IsWindow(w)) break ;;window closed
,,end _error


Messages In This Thread
RE: Checking status of a button every specific period of time to force it - by Gintaras - 12-23-2018, 07:58 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)