Scriptie Posted May 25, 2012 Share Posted May 25, 2012 I remember for years ago when I first used AutoIT I'd a code where I could make the script wait for a site. Not by title, but by the HTML page itself by choosing a word or code that's on the page. If I remember correct it shall be WinWait? Though I've tried to use both WinWaitActive and WinWait, with one word of the title (not the whole) and then a word that I've on the HTML page. But it doesn't seem to work! Do anybody know what function I'm looking for? Link to comment Share on other sites More sharing options...
Scriptie Posted May 25, 2012 Author Share Posted May 25, 2012 Nobody who knows? Link to comment Share on other sites More sharing options...
water Posted May 25, 2012 Share Posted May 25, 2012 Please wait at least 24 hours before bumping a thread! 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...
TheSeeker Posted May 25, 2012 Share Posted May 25, 2012 Though I am also a Newbie like you, but i had a solution to your problem. There is a option of setting modes, how autoIT uses to match the strings that you provide with the title. You can use AutoITSetOption () function. for example, AutoITSetOption (" WinTitleMatchMode" , 2) WinActivate("YouTube" , "Destroyed in Seconds") should activate the youtube window in which destryed in seconds ( or whatever) is opened... have a look at the help file and try it out... "Let me win[color=rgb(68,68,68);font-family:arial, sans-serif;font-size:small;], [/color]but if I cannot[color=rgb(68,68,68);font-family:arial, sans-serif;font-size:small;] win, let me be brave in the attempt"[/color] Link to comment Share on other sites More sharing options...
water Posted May 25, 2012 Share Posted May 25, 2012 When working with "HTML page" you should use the IE UDF that comes with AutoIt to wait for the page to load and then access the content. 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...
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