saxobob Posted August 4, 2005 Report Share Posted August 4, 2005 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:192.168.2.1<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:192.168.2.1><WCLS:Cannot find server><ELSE><WCLS:Corporation><ENDIF> Thanks Rob Quote Link to comment Share on other sites More sharing options...
Cory Posted August 4, 2005 Report Share Posted August 4, 2005 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. Quote Link to comment Share on other sites More sharing options...
cyberchief Posted August 4, 2005 Report Share Posted August 4, 2005 I put your code in... everything works fine for me. Quote Link to comment Share on other sites More sharing options...
randallc Posted August 4, 2005 Report Share Posted August 4, 2005 hi, 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" OR Wait For Window Title: "Cannot find server" Variable Set String %T1% from Window Title Text Box Display: %T1% Best, Randall Quote Link to comment Share on other sites More sharing options...
saxobob Posted August 5, 2005 Author Report Share Posted August 5, 2005 Many thanks everyone! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.