Jump to content

Recommended Posts

I'm trying to write a script with winwait in it, but for some reason, winwait doesn't wait for the specified window to show up. It just goes trough the script launching all the commands one after the other. On one of my pc's the script works great, but on the other one I have the problem.

I'm new with AutoIT and I think that it's a great tool, but I really need some help with that.

Thanks

Link to post
Share on other sites

I'm trying to write a script with winwait in it, but for some reason, winwait doesn't wait for the specified window to show up. It just goes trough the script launching all the commands one after the other. On one of my pc's the script works great, but on the other one I have the problem.

I'm new with AutoIT and I think that it's a great tool, but I really need some help with that.

Thanks

It may be easier to help if you showed some code.


Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Link to post
Share on other sites

It may be easier to help if you showed some code.

Sure Here...

***************************************************************************************

;Run(@ComSpec & " /c " & 'C:\\Winnt\\system32\\rundll32 nwsetup.dll NWUninstallClient', "", @SW_HIDE)

Run("C:\\Winnt\\system32\\rundll32 nwsetup.dll NWUninstallClient")

WinWait("Uninstal")

Send("y")

WinWait("Uninstal")

Send("n")

Sleep(2000)

;Run(@ComSpec & " /c " & 'C:\\Program Files\\InstallShield Installation Information\\{F02DBC5D-33E3-45E9-B0F8-B7745229ED1C}\\Setup.exe -uninst', "", @SW_HIDE)

Run("C:\\Program Files\\InstallShield Installation Information\\{F02DBC5D-33E3-45E9-B0F8-B7745229ED1C}\\Setup.exe -uninst")

WinWait("NICI")

Send("y")

WinWait("NICI")

Send("{ENTER}")

***************************************************************************************

I have also tried with WinWaitActive and I have the same problem.

Link to post
Share on other sites

Larry was trying to show you to set the "text" not the title.

8)

Doesn't work, it does the same thing.

Here is my code :

***************************************************************************

Run("C:\\Winnt\\system32\\rundll32 nwsetup.dll NWUninstallClient")

WinWaitActive("Uninstal", "Are you sure you")

Send("y")

WinWaitActive("Uninstal", "You must shut down")

Send("n")

Sleep(2000)

Run("C:\\Program Files\\InstallShield Installation Information\\{F02DBC5D-33E3-45E9-B0F8-B7745229ED1C}\\Setup.exe -uninst")

WinWaitActive("NICI", "This will remove NICI")

Send("y")

WinWaitActive("NICI", "NICI U.S./")

Send("{ENTER}")

*****************************************************************************

Link to post
Share on other sites

The text has to be exclusive to that menu. Use the Window Info Tool to find out what text is exclusive.

JS

AutoIt Links

File-String Hash Plugin Updated! 04-02-2008 Plugins have been discontinued. I just found out.

ComputerGetInfo UDF's Updated! 11-23-2006

External Links

Vortex Revolutions Engineer / Inventor (Web, Desktop, and Mobile Applications, Hardware Gizmos, Consulting, and more)

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
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...