View Full Version : switching between apps?
InkViktim
December 13th, 2004, 12:43 PM
hi, i have a USB-UIRT hooked up to my HTPC and have been using girder to control Tvedia (media suite for sigma's xcard that lives in system tray). i recently installed sagetv to use as a PVR as well. sage supports the USB-UIRT w/out girder so i taught it my remote codes (for now).
obviously, now hitting a button controls BOTH apps and i DO understand why, but my question is: what options do i have to fix it? i have a GML for sagetv, but how do i switch between the two as needed?
thanx in advance!
Promixis
December 13th, 2004, 01:07 PM
You can do this with Girder. Look at the focus example in the download area.
InkViktim
December 13th, 2004, 04:21 PM
hmmm, i checked it out but i have no idea what i'm supposed to do w/ an xml file. nothing in it looks even remotely familiar. guess i have some reading to do... ugh.
if that somehow switches girder commands between windows depending on whether they're active or not, will it work for Tvedia? there is no window, just a taskbar icon.
Promixis
December 14th, 2004, 01:35 AM
If you are getting an xml file, then right click and use save as to download it.
Girder is able to disable/enable groups based on the foreground window.
InkViktim
December 14th, 2004, 04:37 AM
right cliick & "save as" in IE is how i got the xml file. in firefox i just got "download.php". i finaly got the right file by opening it in IE and "save page as". how weird. anyway, gonna go tinker now. thanks!
InkViktim
December 14th, 2004, 05:56 AM
wow this is confusing... i have a working gml for both apps (that will both be open all the time). can't i just set up girder to switch which app it sends to by pressing a designated button on the remote? seems that would be easier.
Promixis
December 14th, 2004, 06:09 AM
You can use a dedicated remote.
Did you look at the top group that determines which program is in the foreground and then enables the appropriate group below?
Which apps are you using?
If you put a GML together with the 2 programs you want to control and after you try the targetting, upload it here and I will ahve a look.
InkViktim
December 14th, 2004, 07:16 AM
the apps i'm using are TVedia & SageTV. later i may add winamp, zoomplayer, etc.
yes, i looked at the top group and can sort-of see how it works. before we put time into switching between active windows, one thing that concerns me is that TVedia never has an active window visible on the desktop, only a system tray icon. it's display is only visible through the Xcard's "video out" on my tv. i don't know if it's state would ever change between "active" and "not active". SageTV, on the other hand, i leave fullscreen on the monitor (always active as well). i hope that makes sense to you!
will targeting the active window still work in this case? if so, i'll give it another shot.
Promixis
December 14th, 2004, 07:25 AM
yes it should work. you can have the foreground check default to whatever app you want if it doesn't find a match.
InkViktim
December 14th, 2004, 08:24 AM
ok, i gave it a shot! TVedia doesn't show up in the "target selector" window so i used the info that was in my TVedia GML file and just added the EXE name. i left your examples in there bc i'll be adding those apps anyway. i'm not sure why your folders have a red line thru em and mine don't but i'm sure you do.
how is girder going to "know" which app to send commands to? minimize sage and then it'll switch? i'm still not clear on that.
thanks again :)
Promixis
December 14th, 2004, 08:27 AM
looks like you got it right. The last command in the who is focused multigroup should enable tvvedia by default (if thats the app that is never in focus)....
groups with the red line are NOT enabled and do not receive events. girder will ony process events for the enabled groups. when you send a command, you tell girder what app to send it to.
InkViktim
December 14th, 2004, 09:25 AM
cool, i'm glad i made progress w/out TOO much help. i'm sure u thought it was gonna be a tough one when i couldn't even DL the file, lol.
hmmm, i'm still doing something wrong tho. when sage is in the foregound i can control it, but when i click on something else, then use the remote, TVedia doesn't become active. girder just keeps blinking "check for tvedia". any ideas?
switzch
December 14th, 2004, 10:16 AM
make sure your targeting is proper.. try selecting only the .exe.. there was a discussion a while back how to do this with 'windows exist' instead of 'is foreground' .. you may want to look at this thread if you cant get targeting to work.
good luck.
InkViktim
December 14th, 2004, 11:46 AM
thanks switzch,
i tried checking only the exe, and about a hundred other combinations of the checkboxes on the targeting page. i've tried "window exists" and "is foreground" but still need to go read those threads. my "TVedia only" GML can find the app, so i tried matching those settings w/ no luck. i figured that would work.
i've also noticed that even if zoomplayer is in the foreground, commands aren't working unless my mouse is over the app. it doesn't matter to me right now. but maybe it's info that will help.
thanks!
switzch
December 14th, 2004, 01:01 PM
http://www.promixis.com/phpBB2/viewtopic.php?t=9460
That is the thread i was refering too. That is the basic setup I use without any problems.
InkViktim
December 14th, 2004, 01:45 PM
switzch, that post doesn't mention how to do it with 'windows exist' instead of 'is foreground' but you mention a command that launches something when nothing's actinve.
mike c said "The last command in the who is focused multigroup should enable tvvedia by default" i think you're talking about the same thing, right? do i need to configure it differently?
InkViktim
December 15th, 2004, 11:13 AM
thanks for the help guys. i ended up using a script that switches between apps w/ a button on the remote. it's workin fine and does what i need. thanks again :)
Powered by vBulletin® Version 4.1.8 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.