How to paste clipboard via a macro button?

Questions, comments, and suggestions related to Typeitin.
Post Reply
JoeKundlak
Posts: 12
Joined: Tue Jul 09, 2019 3:59 am

How to paste clipboard via a macro button?

Post by JoeKundlak » Tue Jul 09, 2019 4:03 am

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?

Wavget
Site Admin
Posts: 91
Joined: Wed Jan 16, 2019 4:32 pm

Re: How to paste clipboard via a macro button?

Post by Wavget » Tue Jul 09, 2019 8:32 am

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.

JoeKundlak
Posts: 12
Joined: Tue Jul 09, 2019 3:59 am

Re: How to paste clipboard via a macro button?

Post by JoeKundlak » Tue Jul 09, 2019 8:40 am

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

Post Reply