topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Thursday March 28, 2024, 4:15 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: [IDEA] copy on select  (Read 7642 times)

kalos

  • Member
  • Joined in 2006
  • **
  • default avatar
  • Posts: 1,823
    • View Profile
    • Donate to Member
[IDEA] copy on select
« on: June 14, 2013, 06:55 AM »
hello

each time I select/highlight text in any program, I would like to copy it automatically in a clipboard (seperate from the normal clipboard, which will be used when I copy text with ctrl+c, by context menu, and the other normal ways of copy)

then, middle click to paste only the data of that seperate clipboard

can anyone implement something like this?

thanks!

Ath

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 3,612
    • View Profile
    • Donate to Member
Re: [IDEA] copy on select
« Reply #1 on: June 14, 2013, 09:35 AM »
I think the Skrommel utility DragKing does most of that already, source is available, so you can adjust as desired :)

kalos

  • Member
  • Joined in 2006
  • **
  • default avatar
  • Posts: 1,823
    • View Profile
    • Donate to Member
Re: [IDEA] copy on select
« Reply #2 on: June 14, 2013, 10:33 AM »
yes, that's close, but I think it needs a lot of work to become what I am looking for, of which I dont have a clue :/

Curt

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 7,566
    • View Profile
    • Donate to Member
Re: [IDEA] copy on select
« Reply #3 on: June 14, 2013, 12:01 PM »
The new in your idea is not copy on select, but paste on middle-click; many programs will offer to copy on select. You may want to have a different kind of extra clipboard, as an example working with the NUM keys - I cannot imagine anyone offering the middle-click option.


skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,286
    • View Profile
    • Donate to Member
Re: [IDEA] copy on select
« Reply #4 on: June 14, 2013, 03:03 PM »
I've used a slightly more complicated version of this QnD (Quick 'n Dirty) AHK script for years to paste on middle-click.  Here's a basic version:

Code: Autohotkey [Select]
  1. ~MButton::
  2. {
  3.     If ( A_Cursor = "IBeam" )
  4.     {
  5.         SendInput, ^v
  6.     }
  7. }
  8. Return

4wd

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 5,641
    • View Profile
    • Donate to Member
Re: [IDEA] copy on select
« Reply #5 on: June 14, 2013, 11:36 PM »
The new in your idea is not copy on select, but paste on middle-click; many programs will offer to copy on select.

It's not really that new, it's a common X Windows feature, one that you can have in Windows by using TXMouse.

Unfortunately, TXMouse uses the default clipboard so it misses out on that point.

kalos

  • Member
  • Joined in 2006
  • **
  • default avatar
  • Posts: 1,823
    • View Profile
    • Donate to Member
Re: [IDEA] copy on select
« Reply #6 on: June 15, 2013, 05:11 AM »
I need a seperate clipboard, because sometimes I select text without the intention to copy it, so I wouldn't like it to replace my clipboard data

Ath

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 3,612
    • View Profile
    • Donate to Member
Re: [IDEA] copy on select
« Reply #7 on: June 15, 2013, 09:14 AM »
I've taken DragKing 1.3 source, renamed it to DragKing2 1.0, modified it to preserve the clipboard contents and save the selection in a buffer. The hotkey (default: Middle-button) then pastes from that buffer. I disabled the Ctrl-C hotkey for copying, as it should not interfere with normal clipboard operations.

Note:
- All credits should go to Skrommel
- Source only
- I didn't include any icons as Skrommel has in the compiled exe
- Use at your own risk

Download attached.

Curt

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 7,566
    • View Profile
    • Donate to Member
Re: [IDEA] copy on select
« Reply #8 on: June 15, 2013, 10:07 AM »
I cannot imagine anyone offering the middle-click option.

-hmm... I now realize one of my Firefox addons does exactly this:
Imagine that!   :-[

2013-06-15_170121.gif


cmpm

  • Charter Member
  • Joined in 2006
  • ***
  • default avatar
  • Posts: 2,026
    • View Profile
    • Donate to Member
Re: [IDEA] copy on select
« Reply #9 on: June 15, 2013, 10:15 AM »
Not to take away any from the other posts, but would XMouse work?

http://www.highrez.c...useButtonControl.htm

Like TXMouse, it still uses the default clipboard. Unless you come up with a combination that will do what you want it to do. There are a lot of actions that can be assigned to the mouse buttons with XMouse.

kalos

  • Member
  • Joined in 2006
  • **
  • default avatar
  • Posts: 1,823
    • View Profile
    • Donate to Member
Re: [IDEA] copy on select
« Reply #10 on: June 15, 2013, 05:35 PM »
I've taken DragKing 1.3 source, renamed it to DragKing2 1.0, modified it to preserve the clipboard contents and save the selection in a buffer. The hotkey (default: Middle-button) then pastes from that buffer. I disabled the Ctrl-C hotkey for copying, as it should not interfere with normal clipboard operations.

Note:
- All credits should go to Skrommel
- Source only
- I didn't include any icons as Skrommel has in the compiled exe
- Use at your own risk

Download attached.

thanks! will try asap

EDIT:
1) can you make it silent please? without popping info about chars etc
2) is it possible to make it NOT to alter the buffer content when after selection of text, we click ctrl_c or context menu Copy, or in general normal clipboard contents change to the selected text: so to have totally independent two clipboards
3) have the switchable option to paste with right click (and evoke context menu with ctrl held down and right click)
thanks!
« Last Edit: June 15, 2013, 06:03 PM by kalos »

sword

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 200
    • View Profile
    • Donate to Member
Re: [IDEA] copy on select
« Reply #11 on: June 16, 2013, 02:25 PM »
I'm not sure if 'middle mouse click' was specifically available as an option in Advanced Clipboard Manager but it was *highly configurable*. You might check it out through the URLs I posted in:
"Any better Clipboard program", General Software Discussion, Reply # 40, Dec. 28, 2010

Ath

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 3,612
    • View Profile
    • Donate to Member
Re: [IDEA] copy on select
« Reply #12 on: June 17, 2013, 01:37 AM »
EDIT:
1) can you make it silent please? without popping info about chars etc
2) is it possible to make it NOT to alter the buffer content when after selection of text, we click ctrl_c or context menu Copy, or in general normal clipboard contents change to the selected text: so to have totally independent two clipboards
3) have the switchable option to paste with right click (and evoke context menu with ctrl held down and right click)
thanks!
I'll have a good look at your remarks later today.

Ath

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 3,612
    • View Profile
    • Donate to Member
Re: [IDEA] copy on select
« Reply #13 on: June 17, 2013, 03:51 PM »
1) can you make it silent please? without popping info about chars etc
That's actually a setting, inherited from DragKing...:
Screenshot - 17-06-2013 , 22_41_42.png[IDEA] copy on select

2) is it possible to make it NOT to alter the buffer content when after selection of text, we click ctrl_c or context menu Copy,
Hmm, too much hassle to try and put that in, sorry, someone else could maybe try to add that.
You are trying to have 1 hotkey (Ctrl-C) for 2 clipboards. That's not ever going to work right, IMHO.

or in general normal clipboard contents change to the selected text: so to have totally independent two clipboards
That's what it currently is supposed to be.

3) have the switchable option to paste with right click (and evoke context menu with ctrl held down and right click)
That exceeds my AHK knowledge, and the amount of time I can put into it, so another: Sorry, won't do.

Much of what you ask can already be achieved, in maybe a little different way, by many of the Clipboard extenders/managers available.