aarons Posted March 2, 2018 Report Share Posted March 2, 2018 I need to load a web-page into a text variable. Pretty sure this is not a native function of Macro Express Pro, so I would rely on an external script. I've tried this simple bit of code, but getting an error: set xmlhttp = CreateObject("Msxml2.XMLHttp.6.0") xmlhttp.open "get", "http://en.wikipedia.org/wiki/Google_Chrome", false xmlhttp.send strOutput = xmlhttp.responseText msgbox strOutput There error (found in console output) is "C:\Users\myusername\AppData\Local\temp\msesc13.vbs(3, 1) msxml6.dll: Access is denied What did I do wrong? Quote Link to comment Share on other sites More sharing options...
acantor Posted March 3, 2018 Report Share Posted March 3, 2018 You can do it with Macro Express Pro (or Macro Express 3) if you are content with a non-programmatic solution. Text Type (Simulate Keystrokes): <ALT>d // Go to address bar. Normally, it's selected by default Clipboard Copy Variable Set String %Address% from the clipboard contents Quote Link to comment Share on other sites More sharing options...
aarons Posted March 3, 2018 Author Report Share Posted March 3, 2018 For my application, I really need the HTML. And need to do without without opening a browser window. 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.