Jump to content
Macro Express Forums

Load web-page (HTTP/HTTPS) into a text variable


Recommended Posts

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
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?

Link to comment
Share on other sites

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


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...