SageTV Community  

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

Notices

SageTV Studio Discussion related to the SageTV Studio application produced by SageTV. Questions, issues, problems, suggestions, etc. relating to the Studio software application should be posted here.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 03-04-2008, 04:34 PM
dflachbart dflachbart is offline
SageTVaholic
 
Join Date: Jan 2006
Location: Brookfield, CT
Posts: 2,743
How to determine which property file is in use

Scenario 1: run the SageTV UI on the server in non-service mode
Scenario 2: run the SageTV UI on the server in service mode

If I read the docs correctly, a call to IsServerUI() from the UI will return true in both cases, and IsClientUI() will return false, right ? So how do I determine whether Sage.properties or SageClient.properties is in use ?


Thanks,
Dirk
Reply With Quote
  #2  
Old 03-04-2008, 04:44 PM
Opus4's Avatar
Opus4 Opus4 is offline
Administrator
 
Join Date: Sep 2003
Location: NJ
Posts: 19,624
System Info does some things like that... to determine if using service mode, it checks:

Code:
If !IsClient() && !IsRemoteUI()
 |- InfoText = "Service Mode: " + If(GetProperty("client","")=="true", "Enabled", "Disabled")
Does that answer your question?

- Andy
__________________
SageTV Open Source v9 is available.
- Read the SageTV FAQ. Older PDF User's Guides mostly still apply: SageTV V7.0 & SageTV Studio v7.1.
- Hauppauge remote help: 1) Basics/Extending it 2) Replace it 3) Use it w/o needing focus
- HD Extenders: A) FAQs B) URC MX-700 remote setup
Note: This is a users' forum; see the Rules. For official tech support fill out a Support Request.
Reply With Quote
  #3  
Old 03-04-2008, 04:50 PM
dflachbart dflachbart is offline
SageTVaholic
 
Join Date: Jan 2006
Location: Brookfield, CT
Posts: 2,743
Quote:
Originally Posted by Opus4 View Post
System Info does some things like that... to determine if using service mode, it checks:

Code:
If !IsClient() && !IsRemoteUI()
 |- InfoText = "Service Mode: " + If(GetProperty("client","")=="true", "Enabled", "Disabled")
Does that answer your question?

- Andy
Ah, didn't know about the "client" property... That's going to solve my problem, thanks Andy !


Dirk
Reply With Quote
  #4  
Old 03-04-2008, 04:52 PM
Opus4's Avatar
Opus4 Opus4 is offline
Administrator
 
Join Date: Sep 2003
Location: NJ
Posts: 19,624
Quote:
Originally Posted by flachbar View Post
Ah, didn't know about the "client" property...
It is obviously a little bit hidden -- I had to ask about that when creating the sys info screen in order to be able to report service mode status.

- Andy
__________________
SageTV Open Source v9 is available.
- Read the SageTV FAQ. Older PDF User's Guides mostly still apply: SageTV V7.0 & SageTV Studio v7.1.
- Hauppauge remote help: 1) Basics/Extending it 2) Replace it 3) Use it w/o needing focus
- HD Extenders: A) FAQs B) URC MX-700 remote setup
Note: This is a users' forum; see the Rules. For official tech support fill out a Support Request.
Reply With Quote
  #5  
Old 04-16-2008, 08:49 PM
UFGrayMatter's Avatar
UFGrayMatter UFGrayMatter is offline
Sage Advanced User
 
Join Date: Aug 2006
Posts: 185
does anybody have a way through c# to determing if:
1) SageTV is running
2) SageTV is open or in system tray

I've tried various window properties but haven't figure it out yet

Thanks,
Ryan
Reply With Quote
  #6  
Old 04-16-2008, 10:17 PM
GKusnick's Avatar
GKusnick GKusnick is offline
SageTVaholic
 
Join Date: Dec 2005
Posts: 5,083
Best bet is probably to use FindWindow or EnumWindows to look for a window with the appropriate class and caption. (Use Spy++ to figure out what those might be.)

This won't tell you whether the service is running, just the UI.
__________________
-- 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

Similar Threads
Thread Thread Starter Forum Replies Last Post
STV Import: Video Editing for Sage BobPhoenix SageTV Customizations 279 03-07-2013 01:35 PM


All times are GMT -6. The time now is 06:09 PM.


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