Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
A question: Quick Macros 2
#1
Hello Big Grin
I am using Quick Macros and i like the program. 8)
I record a script and when i play the script: he open's Internet Explorer
thats good.
But sometimes the internet website doesnt work.
So is it possible that when he got the: Cannot find the page.
That he can do a other action?
What is the macro command of that?
I hope you guys understand my problem, and that my English is not verry bad.
Regards,
TheCrow
#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"
#3
I cant find the Web Page dialog.
And when the page cant be found he has to close the IE browser.
I want to do this with recording script, because it have to do more actions when the page cant be found.
#4
You probably have an older version. Download QM 2.1.6. To open the dialog, click 7-th button on the floating toolbar.


Forum Jump:


Users browsing this thread: 1 Guest(s)