Jump to content

computerguy4513

Members
  • Posts

    17
  • Joined

  • Last visited

Reputation Activity

  1. Like
    computerguy4513 reacted to Luke94 in How best to tackle application update with random completion timeframe.   
    Launch the program and then use a Do... Until loop to loop until the login window exists. Inside the loop, use WinGetHandle to check if the pop-up exists and if so click the OK button. After the If statement checking for the pop-up add a sleep for 10 seconds.
    Quick example:
    Run('Program.exe') Do Local $hWnd = WinGetHandle('Pop-up Window Title') If IsHWnd($hWnd) = 1 Then If WinActive($hWnd) = 0 Then WinActivate($hWnd) ControlClick($hWnd, '', '[CLASS:Button; INSTANCE:1]') EndIf Sleep(10000) Until WinExists('Login Window Title') = 1  
  2. Like
    computerguy4513 reacted to Nine in How would I tell a script to wait for a dialog box, but if it doesn't open within a certain time frame, end the script?   
    Ho. I got it. Put a Sleep (3000) in between the 2 blocks of code !  It will wait for closure before executing the second attempt...
×
×
  • Create New...