PDA

View Full Version : Using multiple key combinations from remote control?



gildmor
December 22nd, 2002, 11:03 AM
Hi,

I couldn't see any simple way to have more than one button (fro mremote) activate one command. The remote have limited number of buttons and so I would like to make the starting of applications use key combinations like "Power"+"1" invoke Winamp, "Power"+"2" invokes Notepad etc...
I don't mean pressing them all atthe same time but one after the other in sequence.
Any samples will be welcomed :-)

Thanks.

sibix
December 22nd, 2002, 04:33 PM
This might be what you're looking for: http://www.girder.nl/phpBB2/viewtopic.php?t=3117[/url]

sibix
December 22nd, 2002, 09:34 PM
Well, you were talking about a simple way.
I didn't undestand that shift thing. So I created my own setup for shifting the keys on the remote. I don't know if it's really easier but I got it. You can find that part of my setup in the attached ZIP-file.

It doesn't look as nice as the solution with LUA but it works perfectly.

You will have to create the actions. (Just copy the MultiGroup eg. "Winamp" or "Next track" and change the actions.)

Then you have to enter the ID of your device in the Icon/Device box for the disable_device and re-enable_device commands. You can find out the ID on this page (http://www.girder.nl/developer.php).

Then you can learn the events of your remote. The events for the shift-commands are the same as those for the standard-commands.

You might also want to change the path for the sound-file (Standard-Commands->Shift->DING). This sound-file is played for letting you know that the shift-commands have been activated.

NOTE on disable/re-enable_device:
The device is deactivated and re-activated in this setup, because remotes keep sending events as long as the button is pressed. (It's quite difficult to release the button at the right moment.) The commands for these events would be executed after the backshift because the events are not recognized by the antirepeat-setting right after the backshift.

I hope my explanation is good enough. Otherwise just ask![/url]

gildmor
December 23rd, 2002, 07:21 AM
Can you post a .GML file example using your idea?
I guess implementing 3 key's combination would be even more complicated...

sibix
December 23rd, 2002, 05:03 PM
There is a ZIP file containing a GML file in the attachment of my last posting.

It's possible to expand this to 3 and even more commands per button. It's not too complicated either.

But first I'm trying to simplify this hole thing. At the moment it's quite an ugly way for shifting. It works well but doesn't look good.

As soon as I find a better solution I will post it. But it might take a couple of days or weeks because I don't have much spare time till end of january.

gildmor
December 23rd, 2002, 05:29 PM
I will manage or find some way myself :-)

sibix
December 25th, 2002, 03:11 PM
I just uploaded a solution here: http://www.girder.nl/phpBB2/viewtopic.php?t=3293