Jump to content
Sign in to follow this  
Scriptie

WinWait? titles and text

Recommended Posts

Scriptie

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?

Share this post


Link to post
Share on other sites
water

Please wait at least 24 hours before bumping a thread!


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2018-06-01 - Version 1.4.9.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-01-27 - Version 1.3.3.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites
TheSeeker

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]

Share this post


Link to post
Share on other sites
water

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 2018-06-01 - Version 1.4.9.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-01-27 - Version 1.3.3.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


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
Sign in to follow this  

×