ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > Post New Requests Here

Copying and Pasting with the Mouse

<< < (2/2)

Smobu:
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

Navigation

[0] Message Index

[*] Previous page

Go to full version