cbourdeau Posted November 7, 2005 Share Posted November 7, 2005 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 comment Share on other sites More sharing options...
BigDod Posted November 7, 2005 Share Posted November 7, 2005 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.ThanksIt 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 comment Share on other sites More sharing options...
cbourdeau Posted November 7, 2005 Author Share Posted November 7, 2005 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 comment Share on other sites More sharing options...
cbourdeau Posted November 7, 2005 Author Share Posted November 7, 2005 You are using the same title...WinWait("Uninstal")Pick something that exclusively defines the next window...example: WinWait("Uninstal","Select then folder")Lar.Both window have the exact same title... Link to comment Share on other sites More sharing options...
Valuater Posted November 7, 2005 Share Posted November 7, 2005 Larry was trying to show you to set the "text" not the title. 8) Link to comment Share on other sites More sharing options...
cbourdeau Posted November 7, 2005 Author Share Posted November 7, 2005 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 comment Share on other sites More sharing options...
JSThePatriot Posted November 7, 2005 Share Posted November 7, 2005 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 comment Share on other sites More sharing options...
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