Jump to content
Sign in to follow this  
Phlegm

Any Suggestions?

Recommended Posts

Phlegm

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!

Share this post


Link to post
Share on other sites
seandisanti

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

Share this post


Link to post
Share on other sites
SmOke_N

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.

Share this post


Link to post
Share on other sites
Phlegm

Actually it does send {left}{enter} keys to the window

but it never moves onto the next line.

Thanks

Share this post


Link to post
Share on other sites
SmOke_N

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.

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×