Pressing buttons, while holding another

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
islamsaab
New User
Posts: 4
Joined: Thu Nov 29, 2018 7:37 am

Pressing buttons, while holding another

Post by islamsaab »

XMBC Version: 2.16.1
Windows Version : 10
Mouse Information(brand/model): bloody V7
Computer Information:
Did the problem occur after an upgrade of XMBC?:
Did the problem occur after a Windows update/upgrade?:
How long have you used XMBC?:
What language and keyboard layout do you use in Windows?: Eng

Clear description of the problem:
Hello, i need to do somthing, but cant figure it out.
I need to hold "D" for 2 seconds and while i holding it repeatedly pressing "Shift"
pls help, if you can.

i couldnt even force it to hold Shift button for typing on capital letters.
example: {PRESS}{SHIFT}{WAIT:5}{RELEASE}{SHIFT}
so, while i started the script, it should hold SHIFT pressed. but when i use it and type abc (manualy) it doesnt appear as ABC, its just abc.

then i tryed: {HOLD:5}{SHIFT}
from what i know, that means script will hold Shift for 5 seconds. and again my letters appearing in small letters.

Lets say i need to Hold Shift for 5 seconds, and between these 5 seconds include some comands.
holding Shift, waiting 1 second then holding "S", waiting 1 second then pressing (not holding, just usual press) "D" and after all i need to Release "S" and Shift.

Thanks for advice )
islamsaab
New User
Posts: 4
Joined: Thu Nov 29, 2018 7:37 am

Re: Pressing buttons, while holding another

Post by islamsaab »

{PRESS}S{WAITMS:1100}{PRESS}{LMB}{WAITMS:6100}{RELEASE}{LMB}S

this seems to be fine. not testet enought yet
User avatar
phil
Site Admin
Posts: 7666
Joined: Sun Apr 06, 2003 11:12 pm

Re: Pressing buttons, while holding another

Post by phil »

islamsaab wrote: Thu Jul 11, 2019 10:28 am {PRESS}S{WAITMS:1100}{PRESS}{LMB}{WAITMS:6100}{RELEASE}{LMB}S
this seems to be fine. not testet enought yet
You may find that last S needs a {RELEASE} before it too.
{PRESS}S{WAITMS:1100}{PRESS}{LMB}{WAITMS:6100}{RELEASE}{LMB}{RELEASE}S

You may also find that if you use a newer version of XMBC (2.18.x) then you have additional options such as {OD} {OR} and {OU} allowing you to perform different actions when the button is pressed, when it repeats and when it is released... Not sure if that will help or not.
--[ 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)
islamsaab
New User
Posts: 4
Joined: Thu Nov 29, 2018 7:37 am

Re: Pressing buttons, while holding another

Post by islamsaab »

Thank you, now it works fine :)
User avatar
phil
Site Admin
Posts: 7666
Joined: Sun Apr 06, 2003 11:12 pm

Re: Pressing buttons, while holding another

Post by phil »

good to know - thanks
--[ 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