AutoCopy the Selected Text to Clipboard by Mouse Lbutton
Posted: Aug 25th, ’19, 05:53
This is one of the default commands of Fastkeys under Shortcuts. The command script goes like this:
There is a little problem though.
Generally, we select the text by one of the following methods:
1. By holding down left mouse button and dragging the cursor (traditional mehtod!
)
2. Using the combination of shift key and rt-lt arrows (used by skilled typists
)
3. By double clicking a word or url or, tripple clicking a whole sentence.(preferred by modern geeks
)
Now, I observed that this command works only after 1. Doesn't copy the text selected by methods 2 and 3. It will be really great if it could execute in all these three instances. (Although, Ctrl+C works in all 3)
Code: Select all
md_treshold:=20 ;pixels
MouseGetPos, mdx, mdy
KeyWait LButton
MouseGetPos, mdx2, mdy2
if (abs(mdx2-mdx)>md_treshold or abs(mdy2-mdy)>md_treshold)
SendInput ^{vk43} ;Ctrl CGenerally, we select the text by one of the following methods:
1. By holding down left mouse button and dragging the cursor (traditional mehtod!
2. Using the combination of shift key and rt-lt arrows (used by skilled typists
3. By double clicking a word or url or, tripple clicking a whole sentence.(preferred by modern geeks
Now, I observed that this command works only after 1. Doesn't copy the text selected by methods 2 and 3. It will be really great if it could execute in all these three instances. (Although, Ctrl+C works in all 3)