Page 1 of 1

Pressing buttons, while holding another

Posted: Wed Jul 10, 2019 9:56 pm
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 )

Re: Pressing buttons, while holding another

Posted: Thu Jul 11, 2019 10:28 am
by islamsaab
{PRESS}S{WAITMS:1100}{PRESS}{LMB}{WAITMS:6100}{RELEASE}{LMB}S

this seems to be fine. not testet enought yet

Re: Pressing buttons, while holding another

Posted: Thu Jul 11, 2019 11:22 am
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.

Re: Pressing buttons, while holding another

Posted: Sun Jul 14, 2019 10:58 am
by islamsaab
Thank you, now it works fine :)

Re: Pressing buttons, while holding another

Posted: Thu Jul 18, 2019 9:42 pm
by phil
good to know - thanks