View Full Version : Using one key for two different events
snfexpress
February 14th, 2004, 08:42 PM
How does on go about using one key, Channel Up for channel up if when using SageTV, LiveTV, but use Channel Up for up if anywhere else in the application?
My remote only has one Up key, and I want to use this key for two different events, depending upon which window is active.
Thanks,
Michael
miked
February 15th, 2004, 01:18 AM
Basically, what you want to do is have separate groups (i.e., folders) of commands, one for SageTV and LiveTV, and one for all other application programs. Each group will have the "channel up" event string, but in the first group the command "channel up" would trigger off the event string, and in the second group the command "up" would trigger off the event string.
Then, you would have to enable one of these groups, and disable the other of these groups, depending on which application is currently active. You can use the TaskSwitch and TaskCreate plug-ins and TaskSwitch and TaskCreate events to trigger "is foreground?" commands (under Girder tab), to see what application is currently active, and then cause the groups to be enabled or disabled appropriately.
Some threads in this forum have discussed this in much more depth:
http://www.girder.nl/phpBB2/viewtopic.php?t=5822
http://www.girder.nl/phpBB2/viewtopic.php?t=6190
http://www.girder.nl/phpBB2/viewtopic.php?p=28432
http://www.girder.nl/phpBB2/viewtopic.php?t=5688
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.