Hi guys,
using TypeItIn for quite some time now, but always wondered - is it possible to paste the current Clipboard as a parameter within a macro?
Say I want to open a webpage using Run, which will have a parameter at the end, copied from the current Clipboard?
How to paste clipboard via a macro button?
-
- Posts: 12
- Joined: Tue Jul 09, 2019 3:59 am
Re: How to paste clipboard via a macro button?
You can copy the clipboard to a variable and then use it in other functions.
For example, this is a button I use to Google selected text:
{Ctrl c}{Delay 50}{Var1 GetClip}{run https://www.google.com/webhp?ie=UTF-8#q={Var1}}
Control-C first copies selected text to the clipboard. There is a short delay to ensure the text is copied. Then the GetClip function transfers the clipboard to Variable #1. The Run command is used to open a web page with a Google search. Note How {Var1} is used to include the text that was copied earlier.
I assigned the <ALT><CTRL>G shortcut key to this button. It enables you to highlight some text and press control-alt-G to search.
Paul.
For example, this is a button I use to Google selected text:
{Ctrl c}{Delay 50}{Var1 GetClip}{run https://www.google.com/webhp?ie=UTF-8#q={Var1}}
Control-C first copies selected text to the clipboard. There is a short delay to ensure the text is copied. Then the GetClip function transfers the clipboard to Variable #1. The Run command is used to open a web page with a Google search. Note How {Var1} is used to include the text that was copied earlier.
I assigned the <ALT><CTRL>G shortcut key to this button. It enables you to highlight some text and press control-alt-G to search.
Paul.
-
- Posts: 12
- Joined: Tue Jul 09, 2019 3:59 am
Re: How to paste clipboard via a macro button?
The issue is that this does not work for me... tried a modified version and it seems as if Var1 does not hold anything... even tried for instance to output it into a Dialog box and it came out blank, only with buttons.
I have TypeItIn 2.9.4 installed (on a work PC).
I have TypeItIn 2.9.4 installed (on a work PC).