Jump to content
Macro Express Forums

Paste formatted html link?


Recommended Posts

Not directly. You would need to insert the text then command the program though the steps to create a link, just as a user would. In Outlook I would TextType ctrl+k to pop up the "Insert Hyperlink" form then use controls to fill in the "Address" (URI) and "Text to Display" then controls again to close the box by sending a mouse click on the "OK" button or just TextType Enter. Actually you can access all the boxes with the Alt shortcut keys also. But the method varies from application to application. What is yours?

Link to comment
Share on other sites

If the text phrase is in the clipboard, or is selected, I think you can create a macro that will convert it to a clickable link. Not sure whether it will be totally automatic, or semi automatic. Hopefully this will get you started...

 

Quote

// Assign %Clip% to the clipboard
Variable Set String %Clip% from the clipboard contents
Variable Modify String %Clip%: Trim
Variable Set Integer %ClipLength% to the length of variable %Clip%
 
// Assign %Selection% to the selected text (if any)
Clipboard Empty
Clipboard Copy
Variable Set String %Selection% from the clipboard contents
Variable Modify String %Selection%: Trim
Variable Set Integer %SelectionLength% to the length of variable %Selection%

 

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

×
×
  • Create New...