TWO Double Mouse ➸ Paste

I hope the solution to my inquiry be a gift to all with the same quest:
I NEED 2 SUCCESSIVE DOUBLE-MOUSE trigger PASTE. I.e.:
DOUBE MOUSE+ DOUBLE-MOUSE ➸ Paste Clipboard content, else, ignore, zap clipboard.
Context: I have a browser window open next to an TextEdit window. I copy a a stream of of text from the browser, and move cursor onto TextEdit, double click on a placeholder, then Double-Click again, Voila: Clipboard is pasted.
Would anyone be willing to teach me how?
Thanks for reading and much more for helping me out.

1 Like

I'll try. Firstly, there is no such thing as a mouse trigger, at least not directly. You can usually accomplish the same thing using a USB Device Key trigger. But there may be some issues with that. In your case, I think it will work. But it also depends on the website that your browser is showing. Since you haven't provided all the details, like the website address, my solution might not work for you. Create the following macro, and then click where you see the word "Click" and then click again using your mouse's primary button. Then this macro will "copy" any selected text when you double click in Safari, and it will "paste" and text when you double click in TextEdit.

Again, this may not work for you, depending on what website you are on. And I may have misunderstood your problem. But if it works, great.

How do you get an "else" from this? Is it when something else happens, eg pressing the ESC key, no second double-click for more than n seconds after the first double-click, something else?

As @Airy says, you could use the "USB Device Key" trigger, but you'll have to ensure that your "placeholder" is a single word since the double-click will pass through and select the word you are clicking on.

Otherwise, the easiest way will be to have two macros, "Activator" and "Paster" -- and because they share triggers they'll have to turn each other on and off. You'll need to start with "Activator" enabled, "Paster" disabled:

Double-Clickers Macros.kmmacros (5.1 KB)

Images

You'll have to scope the Group carefully so it doesn't interfere with all your double-clicks.

But what you're trying to do is pretty kludgy and will be prone to errors. If you want this to be entirely mouse-click driven then much better, IMO, to get a 3 (or more) button mouse and set the third button up to Paste -- then you can double-click to select your placeholder like normal, 3rd-button click to Paste. No hassle at all and useful in tons of other situations too!

A big thank you to Nige_S. Your 3-mouse butrton saved the day. My wife asked why I was using her fancy mouse. I answered, making "miracle!".
So happy to be able to find safety among those who know the ropes. THANKS!

1 Like

I know a lot of people here will recommend you get yourself an MX Master 3S (UK shop link) when your wife demands her mouse back -- I'm a Magic Trackpad user, so couldn't possibly comment...

Orderd one the day before yestrerday. Coincidence?! Thanks.

1 Like

Airy (August), First thing first: Thank you for your time and great to have your input. Is it true most inventions stem from alaziness? That summaries my case (need): Using ChatGPT [I use Chrome] I highlight and Copy [Alt+C] a portion I need. In an ajacent Window of PowerPoint's openn window [Slide 1 to 24] I chose the slide, Double click on the placeholder [XXX]. Then XXX is highlighted, and I then Paste [Alt+V]. Nige_S suggested a mouse third button. The mouse is arriving. Maybe I should have asked "What's the shortest way to copy some text [off a browser] and paste it over a fixed placeholder XXX in the cenmter of a Power Point Slide. I would dream if I could simply highlight and drag it onto the literal XXX. I tried. It doesn't work. [You know this drag and drop is a common feature in many apps includin MS's Office apps but doesn’t work from a browser to PowerPoint. Anyway, it's a need of mine still. I thank you for your sharp mind and generous time.
.

Long ago I created this phrase: "Necessity may be the mother of invention, but laziness is its father."

I'm glad you like his solution.

If you change the app names in my sample macro to your app names (Chrome and ChatGPT?) it may work for you. Did you try my macro?

Personally, I will never touch Chrome again after it corrupted my copy of macOS. And I don't use Microsoft apps because I find Apple's apps to be good enough.

It's possible that it didn't work when you tried because you didn't pause after the first click. I can drag text from "app to app" in macOS, but you have to briefly pause after the first click so that macOS knows you want to drag and drop the selected text. Since you didn't mention if you paused, I can't tell if you did this correctly. Try dragging some selected text between two of Apple's apps (eg, from Safari to Notes) to see what I mean. Once you see how it works, then try it with non-Apple apps.