Page 1 of 1

How to make the imitation of a key work only when double-clicked?

Posted: Sat Sep 07, 2019 1:21 am
by SWatB
XMBC Version: 2.18.8
Windows Version: 10
How to make the imitation of a key work only when double-clicked?
I need to double-click the left mouse button, the simulation of the "Ins" button works.

Re: How to make the imitation of a key work only when double-clicked?

Posted: Sat Sep 07, 2019 10:17 am
by phil
Sorry, not currently possible with XMBC.
You may be able to do it with an autohotkey script?

Re: How to make the imitation of a key work only when double-clicked?

Posted: Sat Sep 07, 2019 10:26 am
by SWatB
phil wrote:
Sat Sep 07, 2019 10:17 am
Sorry, not currently possible with XMBC.
Are you planning to do this in the future?
phil wrote:
Sat Sep 07, 2019 10:17 am
You may be able to do it with an autohotkey script?
How to do it?

Re: How to make the imitation of a key work only when double-clicked?

Posted: Sat Sep 07, 2019 10:39 am
by phil
No it is not currently on the planned list of changes - its actually quite a tricky one and would require massive wholesale changes in XMBC (GUI and back end) so even if it were on the list, given my time constraints, it would likely slip and slip. In theory it may be possible but its to detect double/tripple click as to do it like XMBC does its other action remapping, one would have to block the first click until the second/third - else the default action (single left click) would still run. That would cause massive click lag and would break the button completely in any application that blocks simulated input. I suppose that may be possible to NOT block the sing click but that would mean that the single click action would still run (which may or may not be acceptable depending on your usecase).

As to how to do it in Autohotkey - you would have to head over to the autohotkey forums and ask there. I am not familiar with how to program it, I just know its very flexible and should be able to do something like this (you will still have the issues above, but you can work with that how is best for you as opposed to XMBC having to work for everyone and not just how you want it!)

Re: How to make the imitation of a key work only when double-clicked?

Posted: Sat Sep 07, 2019 10:46 am
by SWatB
I hope you can solve this.
The God will be with you. Always.

Re: How to make the imitation of a key work only when double-clicked?

Posted: Sat Sep 07, 2019 6:02 pm
by phil
I think you misunderstood - this is not on my list of things to do - and its not going on the list any time soon.
Sorry!

Re: How to make the imitation of a key work only when double-clicked?

Posted: Sat Sep 07, 2019 11:25 pm
by Kukurykus
Thx for explaining why double / triple clicks are so hard to implement. I think finaly I understood it.

Re: How to make the imitation of a key work only when double-clicked?

Posted: Sat Sep 07, 2019 11:32 pm
by SWatB
phil wrote:
Sat Sep 07, 2019 6:02 pm
I think you misunderstood - this is not on my list of things to do - and its not going on the list any time soon.
Sorry!
I understood correctly.
Simply, I hope that inspiration will come to you, how to do it faster and easier.
Then, you can add to the list and do.

Re: How to make the imitation of a key work only when double-clicked?

Posted: Sun Sep 08, 2019 7:02 pm
by phil
Fair enough :)