Page 1 of 1

Select text and copy by holding and releasing

Posted: Sun Dec 08, 2019 10:22 am
by andreyb
Hi,


I am not sure how to assign:
1) Select text and copy by a holding button 4 and dragging across text. Then the text should be copied
2) Press button 5 to left click (to re-locate cursor) and paste the copied text to that location

Thanks!

Re: Select text and copy by holding and releasing

Posted: Sun Dec 08, 2019 11:09 am
by phil
This should work...

1) Select "Simulated keystrokes" for button 4. Enter the text: "{LMB}{OU}{CTRL}{OU}c" select method 3 in the "how to send" dropdown.
2) Select Simulated keystrokes for button 5. Enter the text "{LMB}{CTRL}v" select method 1 or 2 in the "how to send" dropdown.

Regards,
Phil

Re: Select text and copy by holding and releasing

Posted: Mon Dec 09, 2019 3:02 pm
by andreyb
Hi, Thanks. Worked.

But, if I have some text selected, I want the pasting button to replace it.
Instead, it calls left click, and I loose the selection.

So, in case there is no selection there should be a left click, and if there is some test selected, there should not be...

I also want to drag pasting botton to select text and paste instead of selected...

Re: Select text and copy by holding and releasing

Posted: Mon Dec 09, 2019 3:17 pm
by Kukurykus
Due to no conditions use Button Held or Button Chording or else other button with SimKeys for {ctrl}v.

Re: Select text and copy by holding and releasing

Posted: Mon Dec 09, 2019 6:49 pm
by phil
andreyb wrote: Mon Dec 09, 2019 3:02 pm Hi, Thanks. Worked.

But, if I have some text selected, I want the pasting button to replace it.
Instead, it calls left click, and I loose the selection.

So, in case there is no selection there should be a left click, and if there is some test selected, there should not be...

I also want to drag pasting botton to select text and paste instead of selected...
Well thats not what you asked for last time - I'm sure the goal posts have just been relocated!

XMBC does not know if any text is selected or not - so it is unable to decide what to do automatically. So yes, there are options but they are all going to be manual (button held for example, you will need to think about which you want and therefore how long you need to hold the button) or using another button, or using a layer - either way its going to require brain power as XMBC cant do this automatically.

Re: Select text and copy by holding and releasing

Posted: Sun May 14, 2023 9:57 am
by constantine
phil wrote: Sun Dec 08, 2019 11:09 am 1) Select "Simulated keystrokes" for button 4. Enter the text: "{LMB}{OU}{CTRL}{OU}c" select method 3 in the "how to send" dropdown.
2) Select Simulated keystrokes for button 5. Enter the text "{LMB}{CTRL}v" select method 1 or 2 in the "how to send" dropdown.
Hi Phil,

For a while now I've been looking to reproduce the Linux/Unix X Windows System behaviour for copy/paste on select/middle-click and this is by far the most accessible solution. This is so simple and sublime! Thank you very much! And there's so much functionality in this X-Mouse Button Control to explore — it is mind-blowing.

Kind regards,
Constantine

PS. When I go to donate via PayPal it says: "Donations to this recipient aren't supported in this country."

Re: Select text and copy by holding and releasing

Posted: Sun May 14, 2023 9:11 pm
by phil
constantine wrote: Sun May 14, 2023 9:57 am PS. When I go to donate via PayPal it says: "Donations to this recipient aren't supported in this country."
Odd, Ive no idea why paypal would be doing that - but don't worry about it, a thanks is enough :)