|
SageTV Software Discussion related to the SageTV application produced by SageTV. Questions, issues, problems, suggestions, etc. relating to the SageTV software application should be posted here. (Check the descriptions of the other forums; all hardware related questions go in the Hardware Support forum, etc. And, post in the customizations forum instead if any customizations are active.) |
|
Thread Tools | Search this Thread | Display Modes |
#21
|
|||
|
|||
Quote:
SendMessage.exe -c WinClass -N WinName -m 1024 2 ("2" for Left arrow.) I tried several variations as well. All it does is give me a popup window listing the commands and usage, but nothing in terms of explanation. |
#22
|
|||
|
|||
Quote:
Using "SageTV.exe -event 63" on the command line or in a bat file fails to launch the program. |
#23
|
|||
|
|||
Quote:
Code:
SendMessage.exe -C SageApp -N SageWin -m 1258 -W 0 2 Last edited by wnjj; 10-07-2019 at 07:40 PM. |
#24
|
|||
|
|||
Running that shouldn't launch the program. It needs to already be running. After it's running, calling it with the -event 63 option "talks" to the already running instance (basically another SageTV.exe program runs, sends a message then exits). The SendMessage.exe program does the same thing as the -event option but allows for more than one code in sequence.
|
#25
|
||||
|
||||
I'll be traveling this weekend. I'll look at it when I get back.
__________________
Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders. |
#26
|
|||
|
|||
Quote:
For the bat file to work, SageTV.exe must already be running and on the Main Menu. I tried adding "SageTV.exe" to the bat file to launch it first, but the "SendMessage" executes too soon. I need a single bat file (or shortcut) that opens Sage and goes directly to Live TV. |
#27
|
|||
|
|||
Quote:
I'm not sure how to wait until the message loop is up and ready. Depending upon how immediate you need it to be, you could put a fixed delay in the batch file between the SageTV.exe call and the SendMessage.exe call. Something like this: Code:
timeout /t 60 Alternatively there may be a way to detect when SageTV is ready but it may involve something more complex like checking for a logfile timestamp or contents to change. A plugin may be simpler at that point. |
#28
|
|||
|
|||
Quote:
Here is the bat file I created: Code:
SageTV.exe timeout /t 20 SendMessage.exe -C SageApp -N SageWin -m 1258 -W 0 63 Looks like it would work, no? No. Windows launches SageTV.exe, then waits for it to close before executing the next two lines (I thought "SendMessage" was being sent "too soon", but it's actually being sent too LATE!) So unless there's a way to do it all in one command, I'm afraid this method just won't work. |
#29
|
|||
|
|||
Quote:
Code:
start /b SageTV.exe timeout /t 20 SendMessage.exe -C SageApp -N SageWin -m 1258 -W 0 63 |
#30
|
|||
|
|||
Quote:
What does the "start /b" do? |
#31
|
|||
|
|||
Good deal.
start means run the program without waiting to return to the batch file. The '/b' means run the program without opening another console. You can see this by running "start dir" and "start /b dir" from a CMD prompt to see the difference. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Modems and switches | rfeyer | Hardware Support | 6 | 04-17-2017 02:48 PM |
I have a question about switches. | rnadeau | Hardware Support | 29 | 07-10-2012 08:57 PM |
Change JVM switches | CadErik | General Discussion | 0 | 12-30-2008 01:40 AM |
Two ATX Power Switches? | EdwardATeller | Hardware Support | 4 | 04-13-2008 02:31 PM |
Routers, switches, et. al. | ToonGal | Hardware Support | 23 | 03-13-2004 11:11 PM |