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.
NOTE: To reduce spam, new users can not post links, files or images until they have at least 4 posts.
Post Reply
MrMikeHunt
New User
Posts: 6
Joined: Tue Oct 04, 2011 9:27 pm

How press and hold this button down for some time ?

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

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

Post 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?
--[ 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)
MrMikeHunt
New User
Posts: 6
Joined: Tue Oct 04, 2011 9:27 pm

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

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

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

Post 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!
--[ 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)
MrMikeHunt
New User
Posts: 6
Joined: Tue Oct 04, 2011 9:27 pm

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

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

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

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

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

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

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

Post 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}
--[ 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)
MrMikeHunt
New User
Posts: 6
Joined: Tue Oct 04, 2011 9:27 pm

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

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

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

Post by phil »

Great - glad I got something right yesterday :P
Thanks for letting me know!
--[ 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)
User avatar
Kukurykus
Fanatic
Posts: 388
Joined: Sat Jul 02, 2016 1:15 pm

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

Post by Kukurykus »

I gained much on your conversation: How to press CTRL & SHIFT at same time by SimKeys?
HAMA Roma, Rapoo 3920P
Windows 10 x64, Intel i5-4670K @ 3.40GHz, 8GB,
Intel(R) HD Graphics 4600, Intel SSD 179 GB HDD
Post Reply