ermilemerson Posted June 25, 2009 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
water Posted June 25, 2009 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 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki
ermilemerson Posted June 25, 2009 Author Posted June 25, 2009 Is the "text" means the text in the button?
water Posted June 25, 2009 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 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki
ermilemerson Posted June 25, 2009 Author Posted June 25, 2009 uhm water, what if it can't see any visible text or hidden text?
water Posted June 25, 2009 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 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki
ermilemerson Posted June 25, 2009 Author Posted June 25, 2009 here's the one to be ignoreduntitled.bmp
ermilemerson Posted June 25, 2009 Author Posted June 25, 2009 http://i238.photobucket.com/albums/ff153/e...n/untitled2.jpghttp://i238.photobucket.com/albums/ff153/e...an/untitled.jpg
water Posted June 25, 2009 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 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki
Arpita Posted July 6, 2009 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.
bo8ster Posted July 7, 2009 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]
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