Phlegm Posted March 30, 2006 Posted March 30, 2006 Here the end of a script I'm working on. Can anyone see why the script never gets to the msg box at the end? WinWait("Adobe Registration - Registration Choice","Please choose if you") If Not WinActive("Adobe Registration - Registration Choice","Please choose if you") Then WinActivate("Adobe Registration - Registration Choice","Please choose if you") WinWaitActive("Adobe Registration - Registration Choice","Please choose if you") Send("{LEFT}{ENTER}") MsgBox(48,"Finished","Acrobat v5.0.5 install is compete." & @CRLF & "Please reboot before using Acrobat.") Thanks again!
seandisanti Posted March 30, 2006 Posted March 30, 2006 Here the end of a script I'm working on. Can anyone see why the script never gets to the msg box at the end?WinWait("Adobe Registration - Registration Choice","Please choose if you")If Not WinActive("Adobe Registration - Registration Choice","Please choose if you") Then WinActivate("Adobe Registration - Registration Choice","Please choose if you")WinWaitActive("Adobe Registration - Registration Choice","Please choose if you")Send("{LEFT}{ENTER}")MsgBox(48,"Finished","Acrobat v5.0.5 install is compete." & @CRLF & "Please reboot before using Acrobat.")Thanks again!the winwait doesn't have a timeout, so it never moves to the second line
Moderators SmOke_N Posted March 30, 2006 Moderators Posted March 30, 2006 Here the end of a script I'm working on. Can anyone see why the script never gets to the msg box at the end?WinWait("Adobe Registration - Registration Choice","Please choose if you")If Not WinActive("Adobe Registration - Registration Choice","Please choose if you") Then WinActivate("Adobe Registration - Registration Choice","Please choose if you")WinWaitActive("Adobe Registration - Registration Choice","Please choose if you")Send("{LEFT}{ENTER}")MsgBox(48,"Finished","Acrobat v5.0.5 install is compete." & @CRLF & "Please reboot before using Acrobat.")Thanks again!Because the script is still waiting with >> WinWaitActive("Adobe Registration - Registration Choice","Please choose if you"), you'll note it doesn't send left/enter either. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
Phlegm Posted March 30, 2006 Author Posted March 30, 2006 Actually it does send {left}{enter} keys to the window but it never moves onto the next line. Thanks
Moderators SmOke_N Posted March 30, 2006 Moderators Posted March 30, 2006 Then that's not your whole code... Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
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