WaitScreenText on Windows 10

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
vereiski
Newbie
Posts: 2
Joined: Fri Feb 03, 2017 11:51 am

WaitScreenText on Windows 10

Post by vereiski » Fri Feb 03, 2017 4:55 pm

Hi, does anyone have issues using WaitScreenText on Windows 10?

My macro does not find any text on the webpage loaded in the IE window.

Does anyone can point me to a working sample on windows 10, IE11?

Best regards,
Ivan Nobre Vereiski

User avatar
Marcus Tettmar
Site Admin
Posts: 7380
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Re: WaitScreenText on Windows 10

Post by Marcus Tettmar » Sat Feb 04, 2017 7:54 am

WaitScreenText is working fine for me with IE11 on Windows 10. But make sure it is text and not an image?
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

vereiski
Newbie
Posts: 2
Joined: Fri Feb 03, 2017 11:51 am

Re: WaitScreenText on Windows 10

Post by vereiski » Mon Feb 13, 2017 11:47 am

Hi there Marcus, thanks for the answer.

I'm still having troubles finding the text.

Bellow is a part of the web page I'm waiting to be found. I'm looking for the words "Bem-vindo" using WaitScreenText>Bem-vindo
MessageModal>Found!

The message "Found!" never comes.

webpage:

Code: Select all

<div id="WIN_0_536870913" arid=536870913 artype="Trim" arsubtype=3 ardbn="Bem-vindo ao xTTS" arcolor="transparent" class="arfid536870913 ardbnBem-vindoaoxTTS trimdiv" style="z-index:1001&#59;top:133&#59; left:381&#59; width:234&#59; height:38&#59;background-color:transparent&#59;">
<table style="top:0&#59; left:0&#59; width:234&#59; height:38&#59;" class="trimTable" cellpadding=0 cellspacing=0>
<tr>
<td valign="middle" artcolor="#fffbf0" style="color:#fffbf0&#59;" class="f3 trimJustc">Bem-vindo&nbsp;ao&nbsp;xTTS</td>
</tr>
the file is a printScreen of the webpage loaded.

User avatar
Dorian (MJT support)
Automation Wizard
Posts: 1354
Joined: Sun Nov 03, 2002 3:19 am
Contact:

Re: WaitScreenText on Windows 10

Post by Dorian (MJT support) » Thu Feb 16, 2017 12:57 am

If I'm looking for it in a page open in Internet Explorer, I like to use IEWaitForText.

Something like this :

Code: Select all

//If you use IECreate to create IE and navigate to your page.
IECreate>IE[0]
IENavigate>IE[0],http://www.mypage.com/page.htm,ie_res
IEWaitForText>IE[0],,{"Bem-vindo"},0,20,result
Wait>0.5

OR

//If you *don't* use IECreate to create IE and navigate to your page.
IEGetFromURL>http://www.mypage.com/page.htm,IE[0]
IEWaitForText>IE[0],,{"Bem-vindo"},0,20,result
Wait>0.5
I usually put a small wait after IEWaitForText, just to be safe.

The 20 represents a 20 second time-out.
Yes, we have a Custom Scripting Service. Message me or go here

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts