Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate

Copy on select implementation


  • Please log in to reply
21 replies to this topic
  • Guests
  • Last active:
  • Joined: --
Here's a generic way to exclude certain windows from select copy:

GroupAdd, SkipSelectCopy,,,, ahk_class QWidget
GroupAdd, SkipSelectCopy,,,, ahk_class ConsoleWindowClass


#IfWinActive ahk_group SkipSelectCopy

...


  • Guests
  • Last active:
  • Joined: --
Nope, it doesn't work. It should skip the windows listed in the group, but it doesn't do that for some reason...

  • Guests
  • Last active:
  • Joined: --
Should this be:
...

#[color=red]IfWinNotActive[/color] ahk_group SkipSelectCopy

...


  • Guests
  • Last active:
  • Joined: --
I set "focus follows mouse" in the registry according to this web site
<!-- m -->http://www.burningcu...derek/winsetup/<!-- m -->

It seems to be messing with this script. The copy-paste function works, but when I click on anything in the taskbar, the window gets focus and the mouse cursor moves to the center of that window.

If you comment out this line
sendinput ^c
it doesn't move the cursor, but then it doesn't copy. It seems to ignore cos_mousedrag_treshold. Any idea how to get this scrip to work with focus follows mouse?

bharatranpura
  • Guests
  • Last active:
  • Joined: --
Paste in Mozilla fire fox with right / left click

nimda
  • Members
  • 4368 posts
  • Last active: Aug 09 2015 02:36 AM
  • Joined: 26 Dec 2010
Better idea:
Include LearningOne's gst() and instead of checking whether the drag area was large enough, check as in "If gst()"
This prevents accidental keystrokes, and can be very efficient with
If (a := gst())
   Clipboard := a
any problems with that?

  • Guests
  • Last active:
  • Joined: --
I combined the best of 2 scripts here.

I have put copy on: select text and while holding left button, press right button.

and paste on middle click.

just select to copy creates some problems such as,

in excel, if we select a cell, it gets copied which is annoying.

furthermore, if we want to REPLACE some text in a paragraph with some other text which is on clipboard, then normal tendency is to select the text and overwrite it by pasting clipboard text. this wont work if we have select to copy in place.