Page 1 of 1

Is there a way to wait and then send key strokes in {OU} tag?

Posted: Sun May 21, 2023 4:43 pm
by iuvx
Please fill in this template when posting!
XMBC Version: 2.20.2
Installed or Portable version:Portable
Windows Version: windows 10
Mouse Information (brand/model): logitech g502
Relevant Computer Information (CPU, RAM etc): g4900
Did the problem occur after an upgrade of XMBC? (If so, from what version?): no
Did the problem occur after a Windows update/upgrade? (If so, from what version?): no
How long have you used XMBC?: 1 year
What language and keyboard layout do you use in Windows?: chinese

Clear description of the problem - try and include as much information as possible, including what button and mappings you are having problems with (if applicable).:

So I need a function that make my mouse right button to simulate the Q key during the right button is down ,then after Q is released ,xmbc should wait for 130ms and then send D key .

I tried (during)[Q{OU}D], it works ,but when I add {WAITMS:130} to it ,which is (during)[Q{OU}{WAITMS:130}{OU}D], the D key is still sent as soon as I release the mouse button ,the delay take effect after D key is sent ,

what shoud I fill in the blank to make it work as intended ?

Re: Is there a way to wait and then send key strokes in {OU} tag?

Posted: Sun May 21, 2023 4:49 pm
by iuvx
Should be

mouse right button down -> Q down

mouse right button up -> Q up ,wait for 130ms ,F down and up .

Re: Is there a way to wait and then send key strokes in {OU} tag?

Posted: Sun May 21, 2023 8:48 pm
by Dolmatov
On Button Pressed/Released/Repeated tags:
{OD} Only send when the button is pressed
{OU} Only send when the button is released
{OR} Only send when repeating
Button. (mouse) Not a key. (keyboard).
The specified values will not work for your task.
__
For buttons.
Special tags for send methods 1,2,4,5,6,7 & 9:
{PRESS} Press down the following key
{RELEASE} Release (let go of) the following key
NOTE: You must {RELEASE} any key you {PRESS} in the same sequence!
__
Your task is impossible, as far as I understand.
You have two parts:
Execute a command on click;
Execute command on release.

The program has no such division. Everything is done in one set. Keyboard button presses are available by timer, not by mouse state.

Re: Is there a way to wait and then send key strokes in {OU} tag?

Posted: Mon May 22, 2023 3:28 pm
by phil
Dolmatov wrote: Sun May 21, 2023 8:48 pm
On Button Pressed/Released/Repeated tags:
{OD} Only send when the button is pressed
{OU} Only send when the button is released
{OR} Only send when repeating
Button. (mouse) Not a key. (keyboard).
The specified values will not work for your task.
Sorry Dolmatov, but I believe you are wrong here.
{OU} simply means only send the following tag when the button is released (On Up). It applies to any tag, key or button.
However it sounds like it is not working with {WAIT} tags - I will have to investigate. It certainly should be possible.