|
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
|
||||
|
||||
Launch an application and retain focus for remote
I am trying to launch Internet Explorer with ExecuteProcess() and then be able to respond to inputs from the remote control. I have tried calling a dll function after calling ExecuteProcess which does a find window on the Sage window and making it active and even foreground but have not had any luck. The focus to keyboard and remote remains on the IE window that was launched.
Any ideas? |
#2
|
|||
|
|||
I suggest tring out EventGhost, the SageTV plugin works perfectly in this situation. IE has focus and remote control commands go to SageTV, so you can effectively surf and watch at the same time.
You can also launch IE resize and reposition the 2 windows from within EventGhost all in one stroke. Code:
<?xml version="1.0" encoding="UTF-8" ?> <EventGhost Version="1242"> <Macro Name="MultiTask" Expanded="True"> <Event Name="Main.Multitask"> </Event> <Action> Window.FindWindow(u'SageTV.exe', u'SageTV', u'sage.SpecialWindow', u'', u'SunAwtCanvas', 7, False, 15.0, 0) </Action> <Action> Window.Restore() </Action> <Action> Window.Resize(640, 480) </Action> <Action> Window.MoveTo(0, 0) </Action> <Action> Window.FindWindow(u'iexplore.exe', u'Google - Windows Internet Explorer', u'IEFrame', None, None, 1, False, 0.0, 0) </Action> <Action> Window.BringToFront() </Action> <Action> Window.MoveTo(641, 0) </Action> <Action> Window.Resize(726, 768) </Action> <Action> System.Execute(u'C:\\WINDOWS\\system32\\osk.exe', u'', 0, False, 2, u'') </Action> <Action> Window.FindWindow(u'osk.exe', u'On-Screen Keyboard', u'OSKMainClass', None, None, 1, False, 30.0, 0) </Action> <Action> Window.MoveTo(0, 545) </Action> </Macro> </EventGhost> |
#3
|
|||
|
|||
Quote:
Is this for coding in the Netflix plugin or are you trying to set up your remote to work with SageTV? |
#4
|
||||
|
||||
CollinR, thanks for the suggestion. I'd rather not depend on a 3rd party app but I will check it out. In fact, from the Ghost parameters and commands you listed, I may be able to tweak up my dll to do what I want.
Brent, NetFlix of course! Last edited by Morgan111; 04-09-2008 at 07:51 PM. |
#5
|
|||
|
|||
Quote:
Quote:
For the expert coders out there (I know you're here ) What Morgan needs is a way to launch the Internet Explorer Window (for the Netflix Watch-Now app) and execute windows commands that control the interface like girder does (explained further in this post). If anyone has any ideas post them here as we would love to see this added to the netflix plugin so girder wouldn't be required. Collin is on the right track with the eventghost settings he mentioned. |
#6
|
||||
|
||||
Quote:
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|