|
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. |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
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 |
#2
|
||||
|
||||
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") - 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. |
#3
|
|||
|
|||
Quote:
Dirk |
#4
|
||||
|
||||
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. |
#5
|
||||
|
||||
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 |
#6
|
||||
|
||||
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 |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
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 |