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

x64 Replacement/Alternative to Microsoft's IntelliMouse application.
Forum rules
Please read the forum rules before posting for the first time.
The more information you can provide, the quicker and more accurately someone can help.
NOTE: To reduce spam, new users can not post links, files or images until they have at least 4 posts.
Post Reply
iuvx
New User
Posts: 2
Joined: Sun May 21, 2023 4:27 pm

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

Post 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 ?
iuvx
New User
Posts: 2
Joined: Sun May 21, 2023 4:27 pm

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

Post by iuvx »

Should be

mouse right button down -> Q down

mouse right button up -> Q up ,wait for 130ms ,F down and up .
User avatar
Dolmatov
Committed
Posts: 149
Joined: Tue Sep 19, 2017 9:19 pm

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

Post 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.
User avatar
phil
Site Admin
Posts: 7670
Joined: Sun Apr 06, 2003 11:12 pm

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

Post 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.
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9/G604/M720/MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 10 x64, AMD Ryzen 5900x, MSI x570 Tomahawk, 32GB DDR4,
nVidia RTX 2070s, Evo 970 1Tb NVME, 2x2TB WD Black (RAID1)
Post Reply