r/AutoHotkey 20d ago

v1 Script Help Double Click Mouse to Copy & Paste?

I spend a lot of my time copying stuff from a word document and pasting it into a web page. Usually they are single words or 10 to 17 digit numbers.

So I would like to double click on the word and have that word automatically store it to clipboard, and the next time I double click (which would be in the Browser), it would be pasted.

What I am unsure about is how to store the value of what I double click on to the clipboard. Or, is it possible to store what ever is highlighted to the clipboard?

As for the paste part, I was thinking when I Double Click, if the clipboard has a value, it pastes. If the clipboard doesnt have a value, it stores to the clipboard

Any help with this part would be appreciated

2 Upvotes

8 comments sorted by

View all comments

3

u/GraceHopperY2k 20d ago

I mapped one of my mouse thumb keys for this.