Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
A question: Quick Macros 2
#2
To insert command that opens web page, use the Open Web Page dialog. Select 'Wait for final URL' and specify the URL that must be when the correct page is loaded. Select 'On error: execute following (tab-indented) code'. This inserts the web command followed by err. Example:

Code:
Copy      Help
;This probably will succeed
web "http://www.quickmacros.com/" 0x11 0 "*"
err
,mes "url 1 failed"

;This probably will fail, and message box will be displayed
web "http://www.quickmacros.com/hkhkhkhlkh.htm" 0x11 0 "*"
err
,mes "url 2 failed"


Or, only select 'Wait while page is loading'. Then check window title. Example:

Code:
Copy      Help
web "http://www.quickmacros.com/jhsdhshdshdksdsjdlsjd.htm" 0x1
str s.getwintext("Internet Explorer")
if(s="HTTP 404 Not Found - Microsoft Internet Explorer")
,mes "not found"


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)