k56 Posted April 27, 2017 Share Posted April 27, 2017 Hello guys, I am automating CAD work. I am measuring time for a CAD macro to run. I start the timer. Macro runs . Before stopping the timer I am pausing the script to complete the macro. However, WinWaitActive() is not showing any response. Only the status bar of CAD window updates text. So is there any way to pause the script till status bar get updates. I tried using StatusBarGetText() but I want to wait until the status bar get update so that I can stop the timer. Local $hTimer = TimerInit() WinActivate("Journal Manager") ControlClick("Journal Manager", "Run", "[CLASS:Button; INSTANCE:3]", "left") '**********************Provide help for following line.********************************** WinWaitActive("[CLASS:Afx:0000000140000000:8:0000000000010003:000000000110007A:0000000000000000; INSTANCE:1]") Local $NXCheckInTime = TimerDiff($hTimer) MsgBox(64,"Open Part Time",$NXCheckInTime,2) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now