How press and hold this button down for some time ?

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.
Post Reply
MrMikeHunt
New User
Posts: 5
Joined: Tue Oct 04, 2011 9:27 pm

How press and hold this button down for some time ?

Post by MrMikeHunt » Sat Mar 17, 2018 1:40 pm

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.

User avatar
phil
Site Admin
Posts: 5415
Joined: Sun Apr 06, 2003 11:12 pm

Re: How press and hold this button down for some time ?

Post by phil » Sat Mar 17, 2018 4:17 pm

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?
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9, Logitech MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 10 x64, Intel i5-6600k, Asus 170-A, 16GB DDR4,
nVidia GeForce GTX 970, 2xEvo 850 (RAID 0), 2x2TB WD Black (RAID1)

MrMikeHunt
New User
Posts: 5
Joined: Tue Oct 04, 2011 9:27 pm

Re: How press and hold this button down for some time ?

Post by MrMikeHunt » Sat Mar 17, 2018 7:09 pm

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)?

User avatar
phil
Site Admin
Posts: 5415
Joined: Sun Apr 06, 2003 11:12 pm

Re: How press and hold this button down for some time ?

Post by phil » Sat Mar 17, 2018 7:12 pm

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!
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9, Logitech MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 10 x64, Intel i5-6600k, Asus 170-A, 16GB DDR4,
nVidia GeForce GTX 970, 2xEvo 850 (RAID 0), 2x2TB WD Black (RAID1)

MrMikeHunt
New User
Posts: 5
Joined: Tue Oct 04, 2011 9:27 pm

Re: How press and hold this button down for some time ?

Post by MrMikeHunt » Sun Mar 18, 2018 4:06 pm

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

User avatar
phil
Site Admin
Posts: 5415
Joined: Sun Apr 06, 2003 11:12 pm

Re: How press and hold this button down for some time ?

Post by phil » Sun Mar 18, 2018 5:10 pm

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.
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9, Logitech MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 10 x64, Intel i5-6600k, Asus 170-A, 16GB DDR4,
nVidia GeForce GTX 970, 2xEvo 850 (RAID 0), 2x2TB WD Black (RAID1)

User avatar
phil
Site Admin
Posts: 5415
Joined: Sun Apr 06, 2003 11:12 pm

Re: How press and hold this button down for some time ?

Post by phil » Sun Mar 18, 2018 5:49 pm

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.
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9, Logitech MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 10 x64, Intel i5-6600k, Asus 170-A, 16GB DDR4,
nVidia GeForce GTX 970, 2xEvo 850 (RAID 0), 2x2TB WD Black (RAID1)

User avatar
phil
Site Admin
Posts: 5415
Joined: Sun Apr 06, 2003 11:12 pm

Re: How press and hold this button down for some time ?

Post by phil » 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}
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9, Logitech MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 10 x64, Intel i5-6600k, Asus 170-A, 16GB DDR4,
nVidia GeForce GTX 970, 2xEvo 850 (RAID 0), 2x2TB WD Black (RAID1)

MrMikeHunt
New User
Posts: 5
Joined: Tue Oct 04, 2011 9:27 pm

Re: How press and hold this button down for some time ?

Post by MrMikeHunt » Mon Mar 19, 2018 9:11 pm

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 :cheers:

User avatar
phil
Site Admin
Posts: 5415
Joined: Sun Apr 06, 2003 11:12 pm

Re: How press and hold this button down for some time ?

Post by phil » Mon Mar 19, 2018 10:00 pm

Great - glad I got something right yesterday :P
Thanks for letting me know!
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9, Logitech MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 10 x64, Intel i5-6600k, Asus 170-A, 16GB DDR4,
nVidia GeForce GTX 970, 2xEvo 850 (RAID 0), 2x2TB WD Black (RAID1)

Post Reply