ermilemerson Posted June 25, 2009 Share Posted June 25, 2009 Sirs and Maams I am automating an installer. I need to send "!n" after the installation process completed. The problem is.. I can't use WinWaitActive because the window name doesn't change after the installation process. Is there other command like ButtonWaitActive or something that I can use before my Send("!n") command? I don't want to use Sleep() because its unreliable. Thanks Link to comment Share on other sites More sharing options...
water Posted June 25, 2009 Share Posted June 25, 2009 If the text in the window changes you can useWinWait ( "title" , "text" ) My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
ermilemerson Posted June 25, 2009 Author Share Posted June 25, 2009 Is the "text" means the text in the button? Link to comment Share on other sites More sharing options...
water Posted June 25, 2009 Share Posted June 25, 2009 "Text" means any visible text in the window. You can use the autoit window info tool. The tab "Visible Text" shows the text that can be seen by autoit. My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
ermilemerson Posted June 25, 2009 Author Share Posted June 25, 2009 thank you very much water Link to comment Share on other sites More sharing options...
ermilemerson Posted June 25, 2009 Author Share Posted June 25, 2009 uhm water, what if it can't see any visible text or hidden text? Link to comment Share on other sites More sharing options...
water Posted June 25, 2009 Share Posted June 25, 2009 Can you post a screenshot of a window your script should ignore and one screenshot of a window your script sould accept? My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
ermilemerson Posted June 25, 2009 Author Share Posted June 25, 2009 here's the one to be ignoreduntitled.bmp Link to comment Share on other sites More sharing options...
ermilemerson Posted June 25, 2009 Author Share Posted June 25, 2009 here's the one to be considered Link to comment Share on other sites More sharing options...
ermilemerson Posted June 25, 2009 Author Share Posted June 25, 2009 http://i238.photobucket.com/albums/ff153/e...n/untitled2.jpghttp://i238.photobucket.com/albums/ff153/e...an/untitled.jpg Link to comment Share on other sites More sharing options...
water Posted June 25, 2009 Share Posted June 25, 2009 WinWait("STAF 3.3.3","&Done")should wait until the "Done" Button appears. Note: You need the "&" before the underlined letter in the Button. My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
Arpita Posted July 6, 2009 Share Posted July 6, 2009 I am also trying to automate installtion which is made using Installanywhere.I tried doing the way water has mentioned but its not working. autoit window info tool is not showing any data in Visible Text nor even in hidden text. Is there any other way to automate it? Thanks in advance WinWait("STAF 3.3.3","&Done")should wait until the "Done" Button appears. Note: You need the "&" before the underlined letter in the Button. Link to comment Share on other sites More sharing options...
bo8ster Posted July 7, 2009 Share Posted July 7, 2009 Use the info tool to get the info then look at the WinX and ControlX functions in the help file. Post your code because code says more then your words can. SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y. Use Opt("MustDeclareVars", 1)[topic="84960"]Brett F's Learning To Script with AutoIt V3[/topic][topic="21048"]Valuater's AutoIt 1-2-3, Class... is now in Session[/topic]Contribution: [topic="87994"]Get SVN Rev Number[/topic], [topic="93527"]Control Handle under mouse[/topic], [topic="91966"]A Presentation using AutoIt[/topic], [topic="112756"]Log ConsoleWrite output in Scite[/topic] 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