Page 1 of 1
How press and hold this button down for some time ?
Posted: Sat Mar 17, 2018 1:40 pm
by MrMikeHunt
Please read the forum rules before posting for the first time and provide the requested information to help us assist you.
XMBC Version: 2.17
Windows Version: 10
Computer Information: i7,32GRAM
Did the problem occur after an upgrade of XMBC or Windows?: NO
Clear description of the problem:
Please, tell me how to set this:
press and hold this button down for some time ?
I want to have mouse shortcut to do ALT TAB funkcjon but only for shows small windows to choose one (for choosing one I want to manualy move coursor on one of this windows and clik on window what i want choose).
So thats why i want do pres at the same time ALT and TAB and hold down only ALT (for example for 3 seconds). After pressing ALT and TAB I will have miniature windows to choose 1 of these (time for do this will be that 3 sec).
Thank you for help.
Re: How press and hold this button down for some time ?
Posted: Sat Mar 17, 2018 4:17 pm
by phil
Hi,
In the main button configuration dropdown, try choosing "Task view" right under ALT+TAB. This opens the alt+tab task view and alllows you to point and click at the small window you want to activate.
Does that do what you want?
Re: How press and hold this button down for some time ?
Posted: Sat Mar 17, 2018 7:09 pm
by MrMikeHunt
Phil, thank you very much - it works fine - like always great job mate !!!
any way:
it is possible to clik right mouse button then x mouse button will simulate hold down keystrokes for some time (simulated keystrokes function for sure but what I should set there? I checked {wait..} and {hold..} function but still nothing)?
Re: How press and hold this button down for some time ?
Posted: Sat Mar 17, 2018 7:12 pm
by phil
Urm, this could be tricky, because {rmb} will press and release the button... You could try {press}{rmb}{waitms:1000}{release}{rmb} but I'm not 100% sure it will work - cant test it now as Im out!
Re: How press and hold this button down for some time ?
Posted: Sun Mar 18, 2018 4:06 pm
by MrMikeHunt
that's not that what I looking for - I try it and it doesn't work.
Is it possible to do something like this:
{press}{***}{hold it down few sek.}{release}{***}
where *** mean CTRL or ALT or SHIFT or any letter
Re: How press and hold this button down for some time ?
Posted: Sun Mar 18, 2018 5:10 pm
by phil
MrMikeHunt wrote: ↑Sun Mar 18, 2018 4:06 pm
Is it possible to do something like this:
{press}{***}{hold it down few sek.}{release}{***}
where *** mean CTRL or ALT or SHIFT or any letter
So this is a different question - but Its complicated...
CTRL, ALT, SHIFT keys are flags sent along with other keys, so you can't currently press ctrl/alt/shift and then use waitms to wait and then release the key.. Because its just a flag.
For example, using method 1 or 2, the sequence '{CTRL}{WAITMS:1000}a':
sets the CTRL flag, waits 1000ms then presses the KEY 'A' with the flag 'CTRL', then releases the key 'A' with and 'CTRL' flag.
It does not do this: press CTRL, wait 1000ms, press a, release a, release CTRL
That means {press}{ctrl}{release}{ctrl} actually does nothing because its just flags being set and cleared, no keys are sent
.
But for "normal" keys, you should be able to do that like this:
{press}a{waitms:1000}{release}a
Presses the a key, waits 1 second, releases the a key
I'm currently right in the middle of fixing some issues in the area, and it may be possible to change the behavior to allow something like
{press}{ctrl}{waitms:1000}{release}{ctrl}
BUT its going to be difficult to test and not break everyone else's existing scripts so I'm currently sure how its going to look.
Re: How press and hold this button down for some time ?
Posted: Sun Mar 18, 2018 5:49 pm
by phil
OK, I'm getting there in 2.18 Beta 8 this should be possible...
I'll get back in touch when I have some instructions/more details.
Re: How press and hold this button down for some time ?
Posted: Sun Mar 18, 2018 8:17 pm
by phil
OK try 2.18 Beta 8 (available in the beta forum thread)
This should now work (methods 1 and 2)
{press}{ctrl}{waitms:1000}{release}{ctrl}
Re: How press and hold this button down for some time ?
Posted: Mon Mar 19, 2018 9:11 pm
by MrMikeHunt
phil wrote: ↑Sun Mar 18, 2018 8:17 pm
OK try 2.18 Beta 8 (available in the beta forum thread)
This should now work (methods 1 and 2)
{press}{ctrl}{waitms:1000}{release}{ctrl}
And it really does !
U r genius mate
Re: How press and hold this button down for some time ?
Posted: Mon Mar 19, 2018 10:00 pm
by phil
Great - glad I got something right yesterday
Thanks for letting me know!
Re: How press and hold this button down for some time ?
Posted: Wed Jan 08, 2020 8:20 pm
by Kukurykus