Jump to content
Macro Express Forums

"if Not Window Title Running" Fails


Recommended Posts

Hello folks,


I have a macro designed to test my ADSL line by starting a browser, pointing it to Microsoft & checking for a an IE titlebar containing "Corporation" not existing (ie no intenet connection and IE returns a failure page). Should be that if it gets past the condition then the router gets rebooted.


Thing is it gets past the If even when the microsoft home page loads ok.



Then it doesn't shut the windows either.


Can anyone suggest what I'm doing wrong?


Here is the macro in Direct format.


<LAUNCHNO3:0:0112Internet Explorer<LAUNCH:C:\Program Files\Internet Explorer\iexplore.exe><DELAY:.5><TEXTTYPE:<ALT>d><DELAY:.5><TEXTTYPE:www.microsoft.com<ENTER>><DELAY:5><IFOTH:12:2:Corporation><LAUNCHNO3:0:0112Internet Explorer<LAUNCH:C:\Program Files\Internet Explorer\iexplore.exe><DELAY:.5><DELAY:.5><TEXTTYPE:<ALT>d><DELAY:.5><TEXTTYPE:<ENTER>><DELAY:1><TEXTTYPE:<ENTER>><REP3:01:000001:000001:00027:0:01:><TEXTTYPE:<TAB>><ENDREP><TEXTTYPE:<ENTER>><REP3:01:000001:000001:00033:0:01:><TEXTTYPE:<TAB>><ENDREP><TEXTTYPE:<ENTER><ENTER><ENTER>><DELAY:40><WCLS:><WCLS:Cannot find server><ELSE><WCLS:Corporation><ENDIF>





Link to comment
Share on other sites

I'm sorry I don't have time to review your code right now but I would like to suggest you use the If Ping Successful command instead. This way you don't need to open a browser and all that jazz.

Link to comment
Share on other sites


Works OK for me too;

try re-install of Macro Express 3.5d;

otherwise test you macro a little?

Insert (instead of delay 5 secs)

<WAITWIN2:000010:000000:Corporation><OR><WAITWIN2:000010:000000:Cannot find server><TVAR2:01:06:><TBOX4:T:1:CenterCenter000278000200:000:%T1%>
Wait For Window Title: "Corporation"


Wait For Window Title: "Cannot find server"

Variable Set String %T1% from Window Title

Text Box Display: %T1%

Best, Randall
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...