Jump to content
Macro Express Forums

Capturing URL


trebornekmes

Recommended Posts

I want to grab the URL address of the current Internet Explorer tab. I've written a macro that uses drop down menus to categorize and name favorites. It goes to the Windows Explorer Favorites folder and writes a webpage shortcut. This requires that I grab the URL of the page I'm trying to save. I've attempted this is various ways without complete success. Surely it can't be that hard? Currently, I've set it up to refresh the page, <Tab>, and clipboard copy. This works about half the time. Thanks for any advice you can give.

Link to comment
Share on other sites

Hi,

 

You can use the Text Type command to press Alt + D. Alt + D is the IE shortcut to place the cursor in the URL field. It also highlights the URL. You would still need to copy it to the clipboard.

 

If your current macro only works about half the time, most likely it is a timing issue. Make sure you allow adequate time for windows to open, etc. before doing keystrokes.

Link to comment
Share on other sites

Hi,

 

You can use the Text Type command to press Alt + D. Alt + D is the IE shortcut to place the cursor in the URL field. It also highlights the URL. You would still need to copy it to the clipboard.

 

If your current macro only works about half the time, most likely it is a timing issue. Make sure you allow adequate time for windows to open, etc. before doing keystrokes.

 

Hey! It works great. And, so simple too. Thanks a lot.

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.

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

Loading...
×
×
  • Create New...