DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: Copying and Pasting with the Mouse  (Read 8,151 times)

Smobu

  • Participant
  • Joined in 2008
  • *
  • Posts: 51
Copying and Pasting with the Mouse
« on: March 08, 2009, 07:34 AM »
Highlighting text and pressing the ctrl key will copy the text

Middle clicking two times will paste the copied text

Coeluh

  • Family Guy ^^
  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 273
Re: Copying and Pasting with the Mouse
« Reply #1 on: March 08, 2009, 10:50 AM »
I guess this can be done in AutoHotKey.

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • Coding Snacks
    • Volunteers/Staff
    • Gathering Badge
    • Participated in NANY Challenge Once
    • Linux User
Re: Copying and Pasting with the Mouse
« Reply #2 on: March 08, 2009, 11:20 AM »
try Skrommel's DragKing.


Smobu

  • Participant
  • Joined in 2008
  • *
  • Posts: 51
Re: Copying and Pasting with the Mouse
« Reply #3 on: March 08, 2009, 06:28 PM »
Most highlighting text application copy text without enough disrimination. Such as in the case where you would want to rename a file, but the selection of the file name will overwrite what you have already copied.
I thought it will be better if there is more control when the ctrl key was used to really copy what you wanted.

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • Coding Snacks
    • Volunteers/Staff
    • Gathering Badge
    • Participated in NANY Challenge Once
    • Linux User
Re: Copying and Pasting with the Mouse
« Reply #4 on: March 09, 2009, 04:57 AM »
you could put in a feature request here in the original thread of DragKing.

Smobu

  • Participant
  • Joined in 2008
  • *
  • Posts: 51
Re: Copying and Pasting with the Mouse
« Reply #5 on: March 10, 2009, 11:43 PM »
Here is my script:

Pressing left control two times quickly will copy and middle clicking with mouse button will paste.

~Lctrl::   
If (A_PriorHotKey = A_ThisHotKey && A_TimeSincePriorHotKey <= 500)
   { ; Double click
Send ^c                    ; selection -> clipboard
      tempClipBoard := ClipBoardAll      ; save old clipboard
      ClipBoard =
     
     mmClip := ClipBoard        ; store selection in custom clipboard
     Clipboard :=tempClipBoard  ; restore clipboard for ctl-c and ctl-v

}
   return

~Mbutton::
   If (A_PriorHotKey = A_ThisHotKey && A_TimeSincePriorHotKey <= 500)
   { ; Double click
Send, ^v   

   }
return
« Last Edit: March 10, 2009, 11:51 PM by Smobu »

Original address: https://www.donationcoder.com/forum/index.php?topic=17342.0