How do I include hyper link to my text macro?

Frequently Asked Questions
Post Reply
Petr
Posts: 88
Joined: Tue Oct 18, 2016 1:12 pm

How do I include hyper link to my text macro?

Post by Petr » Thu Nov 17, 2016 8:45 pm

Q: How do I include hyper link to my text macro?

A: Since the macro text is plain text there is no way to insert hyper link to the macro text directly.
However, it is possible to create a clipboard macro (using "Add Clipboard Macro" button) that basicaly
can contain the same data that can be put to clipboard. This means that clipboard macro can contain
any data that can be copied to clipboard in Word, Excel and other programs. Now there are two options
how to have a text macro with hyper links:

1) If the text macros is simple then the easiest way is to just copy whole the text with hyper links (the text the macro should conist of)
in the Word or other program into clipboard and then click "Add Clipboard Macro". This will simply create a macro from the clipboard content. Every time such macro is run it will copy data to clipboard and "paste" them to the target application.

2) If the text macro is more complex and contains also some commands ("wait", "if", etc.) then it is necessary to
split the macro to more macros and create clipboard macros from the parts that contain hyper links. Those clipboard macros can be
then called from the original macro using <run> command.

bpod27
Posts: 2
Joined: Fri Mar 24, 2017 2:11 pm

Re: How do I include hyper link to my text macro?

Post by bpod27 » Fri Mar 24, 2017 2:13 pm

Here is an example I created:
<wx>(27)<home><wx>(111)<shift><wx>(111)<end><wx>(11)<shift><wx>(270)<ctrl><wx>(111)k<wx>(111)<ctrl><wx>(500)<clppastetext>(<varout>("_vClpText",0))<wx>(270)<enter><wx>(111)

This will highlight the current line of text and turn it into a hyperlink pointing to the URL stored in your clipboard.

Post Reply