SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV Customizations
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageTV Customizations This forums is for discussing and sharing user-created modifications for the SageTV application created by using the SageTV Studio or through the use of external plugins. Use this forum to discuss customizations for SageTV version 6 and earlier, or for the SageTV3 UI.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 04-22-2006, 05:30 PM
mike1961 mike1961 is offline
Sage Icon
 
Join Date: Dec 2005
Location: California
Posts: 1,555
Neilm's Dynamic Menu - How To Launch Once Only

Hello - I notice that if I launch a program from Sage like MAME and then I flip back to Sage and launch it again the Dynamic Menu loads it twice. Is there a way to tell it to just "flip windows" if the application is already open?

Thanks,
Mike
Reply With Quote
  #2  
Old 04-23-2006, 05:52 AM
nielm's Avatar
nielm nielm is offline
SageTVaholic
 
Join Date: Oct 2003
Location: Belgium
Posts: 4,496
Sage (and java) has no idea if a program is already running, so no. If you are using Girder, you can use the dynamic menu to trigger a girder event that does:
if <program> is running:
then switch to program
else run program.
__________________
Check out my enhancements for Sage in the Sage Customisations and Sageplugins Wiki
Reply With Quote
  #3  
Old 04-23-2006, 12:11 PM
GKusnick's Avatar
GKusnick GKusnick is offline
SageTVaholic
 
Join Date: Dec 2005
Posts: 5,083
You could add the other program to your Windows startup group so it's always running minimized in the background. Then Sage doesn't have to be able to detect whether it's running or not. Just assume that it is.

Or if you're familiar with JScript or VBScript, you can write a simple Windows shell script to test whether the app is running or not, and either activate it or launch it as appropriate. Then configure Sage to run the shell script.

http://msdn.microsoft.com/library/en...0de350e045.asp
__________________
-- Greg
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 10:12 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.