Jump to content

Recommended Posts

Posted

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!

Posted

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
Posted

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.

  • Moderators
Posted

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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...