Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to check button enabled/disabled
#1
This time, I have another technical problem with Quick Macros to solve. That is :

When I clicked on a screen to start a long process ( 1 to 2 hours ), I need to close the screen by clicking certain buttons e.g. "Exit" button, when the process is finished.

However, I do have no ideas about when the process will finish as it will not popup another message box to indicate the completion of the long running process. Rather, upon process completion, it only changes some wordings in the screen, and only have the "Exit" button enabled.

Therefore, can I check the existence of any wording in the screen, or whether a button is enabled/disabled inside a screen ?

Please give me a clue and thanks !
#2
Code:
Copy      Help
int h = child( "E&xit", "Button", "Window Name" )
rep
,if(!IsWindow(h)) ret ;;closed manually
,if(IsWindowEnabled(h)) break
,1
but h ;;press it


Forum Jump:


Users browsing this thread: 1 Guest(s)