jamesd1 Posted August 14, 2020 Report Share Posted August 14, 2020 Is there a way to create a macro that will paste a text phrase that is a clickable html link? Quote Link to comment Share on other sites More sharing options...
Cory Posted August 14, 2020 Report Share Posted August 14, 2020 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? Quote Link to comment Share on other sites More sharing options...
acantor Posted August 15, 2020 Report Share Posted August 15, 2020 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% 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.