SageTV Community  

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

Notices

SageMC Custom Interface This forum is for discussing the user-created SageMC custom interface for SageTV.

Reply
 
Thread Tools Search this Thread Display Modes
  #41  
Old 02-19-2009, 06:05 PM
SteveD's Avatar
SteveD SteveD is offline
Sage Advanced User
 
Join Date: Feb 2009
Location: Alabama
Posts: 228
Ok thanks for the attempt.
__________________
Serv:ECS H61H2-T1 ITX I7 3770S CPU@3.1GHZ 8G Ram WIN1064 HDPVR, HD Homerun|network encoder Unraid Server:B75MU3B I5-3550 CPU@3.30GHz 9TB 16G Ram|Network HDPVR encoder:Win10 VM 8G Ram with Processor passthrough. Directv Http tuning to Genie, exemultitunplugin to Genie client. Http scheduled task bat file to defeat screensaver on Genie. Usb uirt scheduled task bat file to defeat screensaver on Genie client. Clients Android TV, Samsung TAB A
Reply With Quote
  #42  
Old 02-21-2009, 12:31 PM
brainbone brainbone is offline
Sage Expert
 
Join Date: Oct 2006
Posts: 624
Netflix Control v2 test1:

Because of the various problems putting silverlight in full screen brings, I decided to test a different method of making the netflix silverlight player go "full screen". I say "full screen" in quotes because what this method actually does is just enlarge the browser window to the point where the movie takes up the full screen, then attempts to mask off any of the ugly bits of the browser.

The attached is a very early test of this method. It will have problems.

Note: If you use this on a system with more than one display, you will need to make sure IE is launched in kiosk mode (-k switch). Otherwise, bits of the IE window will be visible on your other display(s).

You will see flickering when the netflix navigation bar is displayed/hidden.

You may have problems with the player window, or black mask borders sticking at the topmost position. In this case, you'll need to go into task manager and kill IE and AutoHotKey.

You may have issues where your task-bar disappears.

EDIT: Use v2 test2, below.

Last edited by brainbone; 02-26-2009 at 08:54 AM.
Reply With Quote
  #43  
Old 02-22-2009, 02:21 PM
brainbone brainbone is offline
Sage Expert
 
Join Date: Oct 2006
Posts: 624
Netflix Control v2 test2:

This is an update to Netflix Control v2 test1, above.

Changes:

- Created "settings.ini" file to allow easy adjustment of how long the navigation bar takes to hide, if the TaskBar should be hidden or not, and the ability to specify a window that should be kept in focus.

- Mouse/Keyboard input is blocked while controlling the netflix silverlight player (during a click, etc.).

- Hiding/Showing of netflix player navigation bar should be more smooth.

Feedback would be appreciated.

EDIT: Use v2 test3, below.

Last edited by brainbone; 02-26-2009 at 08:54 AM.
Reply With Quote
  #44  
Old 02-23-2009, 09:21 PM
brainbone brainbone is offline
Sage Expert
 
Join Date: Oct 2006
Posts: 624
Netflix Control v2 test3:

This is an update to Netflix Control v2 test2, above.

Changes:

- Navigation buttons were not always properly located, especially if player needed to buffer for a long period of time. Make sure you replace the old "netflix_player_buttons" folder with the new v2 test3 one.

- Changed method for hiding/showing Windows TaskBar. Previous method forced "Always On Top" off after showing the taskbar.

As always, feedback appreciated.
Attached Files
File Type: zip netflix_control_v2_test3.zip (415.5 KB, 861 views)
Reply With Quote
  #45  
Old 02-24-2009, 03:02 PM
mikesm mikesm is offline
Sage Icon
 
Join Date: Jul 2003
Posts: 1,293
Brainbone, I already run the lmgestion remote control plugin (as opposed to eventghost). I'm trying to get your plugin to work with it. Can you take a look at this page: http://www.lmgestion.net/@en-us/4/22/60/78/article.asp

The reason is that I am confused as to which window class, title and executable I should be using to control the silverlight plugin - should I specify these for the actual plugin, or for ie once the window has begun to play?

I'm trying to avoid having to learn eventghost...
__________________
Server: Sage 6.5.9 - X2 3800+, DFI NF4 MB, 1 GB, 300 GB HD (system disk), NV 7600GS, - Windows XP SP2
Client 1: Sage 6.5.9 - E7200, Abit IP35 Pro, ATI 4850 with HDMI connect to Denon 3808CI and Sony A3000 SXRD TV
Client 2: HD200 connected to Denon 3808CI and A3000 SXRD TV
Client 3: Media MVP to 15" Toshiba LCD
Client 4: HD100 connected to Samsung 23" 720P LCD
Client 5: HD100 connected to Vizio VX37L
Reply With Quote
  #46  
Old 02-24-2009, 04:25 PM
brainbone brainbone is offline
Sage Expert
 
Join Date: Oct 2006
Posts: 624
Send to the window class of "AutoHotKey" and the window title of "NetflixSilverlightControl".

Look at the first post in this topic, and scroll down to "Using SendMessage() to instruct Netflix Control from your application:". That relates to the FindWindow and SendMessage actions in the article you gave.

Edit:

While the "NetflixSilverlightControl" is the window you want to send commands to, you'll want to be sending those commands to that window only when an IE window with the title "Netflix: Netflix Movie Viewer - Windows Internet Explorer" is active.

You should be using netflix_silverlight_control.exe (not netflix_control.exe)

Last edited by brainbone; 02-24-2009 at 05:38 PM.
Reply With Quote
  #47  
Old 02-24-2009, 09:11 PM
mikesm mikesm is offline
Sage Icon
 
Join Date: Jul 2003
Posts: 1,293
Quote:
Originally Posted by brainbone View Post
Send to the window class of "AutoHotKey" and the window title of "NetflixSilverlightControl".

Look at the first post in this topic, and scroll down to "Using SendMessage() to instruct Netflix Control from your application:". That relates to the FindWindow and SendMessage actions in the article you gave.

Edit:

While the "NetflixSilverlightControl" is the window you want to send commands to, you'll want to be sending those commands to that window only when an IE window with the title "Netflix: Netflix Movie Viewer - Windows Internet Explorer" is active.

You should be using netflix_silverlight_control.exe (not netflix_control.exe)
It doesn't seem to work for me. IE kicks off and I get a full screen player, but stop is the only button that is working. I suspect it's the IE screen that's in focus, and therefore the lm plugin doesn't think netflix_silverlight-control.exe should be getting the commands.

Any ideas?
__________________
Server: Sage 6.5.9 - X2 3800+, DFI NF4 MB, 1 GB, 300 GB HD (system disk), NV 7600GS, - Windows XP SP2
Client 1: Sage 6.5.9 - E7200, Abit IP35 Pro, ATI 4850 with HDMI connect to Denon 3808CI and Sony A3000 SXRD TV
Client 2: HD200 connected to Denon 3808CI and A3000 SXRD TV
Client 3: Media MVP to 15" Toshiba LCD
Client 4: HD100 connected to Samsung 23" 720P LCD
Client 5: HD100 connected to Vizio VX37L
Reply With Quote
  #48  
Old 02-24-2009, 10:09 PM
brainbone brainbone is offline
Sage Expert
 
Join Date: Oct 2006
Posts: 624
Quote:
Originally Posted by mikesm View Post
It doesn't seem to work for me. IE kicks off and I get a full screen player, but stop is the only button that is working. I suspect it's the IE screen that's in focus, and therefore the lm plugin doesn't think netflix_silverlight-control.exe should be getting the commands.

Any ideas?
In the "Profile" section:

Name: (whatever you want)
Window Class: (leave blank)
Window Title: Netflix: Netflix Movie Viewer - Windows Internet Explorer
Executable name: (leave blank)

Now, for each remote button action in this profile, you need to:
FindWindow: searching for a windows with a class of "AutoHotKey" and a title of "NetflixSilverlightControl"
SendMessage: with a wParam of 10 and an lParam of 100-110 (see first post in this thread for details) to the window found in FindWindow.
Reply With Quote
  #49  
Old 02-25-2009, 12:19 AM
mikesm mikesm is offline
Sage Icon
 
Join Date: Jul 2003
Posts: 1,293
Quote:
Originally Posted by brainbone View Post
In the "Profile" section:

Name: (whatever you want)
Window Class: (leave blank)
Window Title: Netflix: Netflix Movie Viewer - Windows Internet Explorer
Executable name: (leave blank)

Now, for each remote button action in this profile, you need to:
FindWindow: searching for a windows with a class of "AutoHotKey" and a title of "NetflixSilverlightControl"
SendMessage: with a wParam of 10 and an lParam of 100-110 (see first post in this thread for details) to the window found in FindWindow.
I did all that, but it didn't work either. Doing a trace of the commands recieved, it still shows the active window was sageclient, and so it never triggered the netflix sliverlight plugin profile at all. Stop, the arrow keys, etc... are passed through, so they actually work in the plugin. Everything else doesn't seem to work since the profile didn't change.

This must have something to do with the way morgan's plugin calls ie - the powerdvd profile works because I have a dynamic menu item that runs a system command (in this case power dvd), and when it fires up in full screen mode, it becomes the active window.

Any ideas on where to go from here? It's kind of workable now, using just the arrow heys on the remote and stop. But it would be nice to get the added control capabilities.

thx
mike
__________________
Server: Sage 6.5.9 - X2 3800+, DFI NF4 MB, 1 GB, 300 GB HD (system disk), NV 7600GS, - Windows XP SP2
Client 1: Sage 6.5.9 - E7200, Abit IP35 Pro, ATI 4850 with HDMI connect to Denon 3808CI and Sony A3000 SXRD TV
Client 2: HD200 connected to Denon 3808CI and A3000 SXRD TV
Client 3: Media MVP to 15" Toshiba LCD
Client 4: HD100 connected to Samsung 23" 720P LCD
Client 5: HD100 connected to Vizio VX37L
Reply With Quote
  #50  
Old 02-25-2009, 07:10 AM
brainbone brainbone is offline
Sage Expert
 
Join Date: Oct 2006
Posts: 624
What version of Netflix Control are you using?
Reply With Quote
  #51  
Old 02-25-2009, 08:43 AM
mikesm mikesm is offline
Sage Icon
 
Join Date: Jul 2003
Posts: 1,293
Quote:
Originally Posted by brainbone View Post
What version of Netflix Control are you using?
0.9.

thx
mike
__________________
Server: Sage 6.5.9 - X2 3800+, DFI NF4 MB, 1 GB, 300 GB HD (system disk), NV 7600GS, - Windows XP SP2
Client 1: Sage 6.5.9 - E7200, Abit IP35 Pro, ATI 4850 with HDMI connect to Denon 3808CI and Sony A3000 SXRD TV
Client 2: HD200 connected to Denon 3808CI and A3000 SXRD TV
Client 3: Media MVP to 15" Toshiba LCD
Client 4: HD100 connected to Samsung 23" 720P LCD
Client 5: HD100 connected to Vizio VX37L
Reply With Quote
  #52  
Old 02-25-2009, 09:07 AM
brainbone brainbone is offline
Sage Expert
 
Join Date: Oct 2006
Posts: 624
Try v2 test3.

After updating to v2 test3, check the "Bring application window to foreground" option in your LM Remote profile.

Note that you should run "netflix_silverlight_control.exe", not "netflix_control.exe". Right click both of the green H's in your sys-tray and click "exit". Then only run "netflix_silverlight_control.exe". You should now only see one green "H". (Now that netflix_control.exe is not running, your arrows and stop button will not work until you have LM Remote working properly)

To be clear:
netflix_silverlight_control.exe is the actual control program.

netflix_control.exe captures keystrokes and sends them to netflix_silverlight_control.exe. It should not be used when configuring your remote control software to communication with netflix_silverlight_control.exe directly.

I know the naming I used is confusing. I'll likely be changing it in the future.
Reply With Quote
  #53  
Old 02-25-2009, 12:18 PM
mikesm mikesm is offline
Sage Icon
 
Join Date: Jul 2003
Posts: 1,293
Quote:
Originally Posted by brainbone View Post
Try v2 test3.

After updating to v2 test3, check the "Bring application window to foreground" option in your LM Remote profile.

Note that you should run "netflix_silverlight_control.exe", not "netflix_control.exe". Right click both of the green H's in your sys-tray and click "exit". Then only run "netflix_silverlight_control.exe". You should now only see one green "H". (Now that netflix_control.exe is not running, your arrows and stop button will not work until you have LM Remote working properly)

To be clear:
netflix_silverlight_control.exe is the actual control program.

netflix_control.exe captures keystrokes and sends them to netflix_silverlight_control.exe. It should not be used when configuring your remote control software to communication with netflix_silverlight_control.exe directly.

I know the naming I used is confusing. I'll likely be changing it in the future.
Ok, will try that tonight. Sorry for the confusion...
__________________
Server: Sage 6.5.9 - X2 3800+, DFI NF4 MB, 1 GB, 300 GB HD (system disk), NV 7600GS, - Windows XP SP2
Client 1: Sage 6.5.9 - E7200, Abit IP35 Pro, ATI 4850 with HDMI connect to Denon 3808CI and Sony A3000 SXRD TV
Client 2: HD200 connected to Denon 3808CI and A3000 SXRD TV
Client 3: Media MVP to 15" Toshiba LCD
Client 4: HD100 connected to Samsung 23" 720P LCD
Client 5: HD100 connected to Vizio VX37L
Reply With Quote
  #54  
Old 07-22-2009, 11:57 AM
xelfer xelfer is offline
New Member
 
Join Date: Jul 2009
Location: New York
Posts: 3
Has anyone noticed after Silverlight 3 update (my computers began prompting me last night) that the netflix_silverlight_control.exe isn't finding the pause button? It finds the Fullscreen button, but not the Pause.

I did some more digging and with some extreme zoom in Photoshop, the anti-aliasing on the leading edge of some controls (like next chapter, pause, etc) has a different edge from the base images for the control.

Now here's the kicker... it is different on different graphics cards. One computer still works with the old images, but another needed the new images. Something about SL3 using the GPU instead of CPU is doing the aliasing differently.

I may try and figure out a way to test for all the variations since a lot of people will still have Silverlight 2 for a long time.
Reply With Quote
  #55  
Old 07-22-2009, 12:36 PM
xelfer xelfer is offline
New Member
 
Join Date: Jul 2009
Location: New York
Posts: 3
Adding a *5 to the ImageSearch inside of GetButtonPos was enough to compensate for the GPU differences on my computers.

The line now reads:

ImageSearch, FoundX, FoundY, 0, %y_start%, A_ScreenWidth, A_ScreenHeight, *5 %full_image_path%
Reply With Quote
  #56  
Old 07-29-2009, 10:41 AM
xelfer xelfer is offline
New Member
 
Join Date: Jul 2009
Location: New York
Posts: 3
On 7/27/2009, Netflix appears to have released a newer Silverlight player. This time, the AHK program lost the ability to move the timeline. The change appears surgically directed at the AHK approach.

When the timeline move command comes in, the AHK enters a loop to click the mouse down and move the cursor. As long as the next command comes in before the timer expires, the cursor keeps moving. As of 7/27, the timeline would only make 1 move (regardless of how fast you sent commands) before jumping to that time. I added some debug to the code and found that AHK never sent the mouse up (release that allows the player to proceed until the timer expired. So why was the player jumping in time?

Turns out, the cursor move loop also issues gratuitous mouse-down commands on each loop. Netflix now interprets those extra mouse-downs as mouse-up. Afterall, how can you have another mouse down if the mouse is already down, so you must have meant mouse up.

I added a flag to test for the mouse being down and to NOT issue gratuitous mouse-down events. Now the timeline move works again.
Reply With Quote
  #57  
Old 10-17-2010, 07:46 AM
homie homie is offline
New Member
 
Join Date: Oct 2010
Posts: 1
Not working when zoom active, volume control questionable

I tested and confirmed that netflix_silverlight_control.exe does not work (at all) when Netflix is opened in IE and a zoom level other than 100% is selected.

Also, on my system the volume control actions set the mouse pointer to the volume control element in the player but don't actively change the volume level. Mute works, though.

The jump back/ahead actions don't allow to advance all the way, i.e. to the beginning or the end.
Reply With Quote
  #58  
Old 04-26-2011, 08:11 AM
dhgb256 dhgb256 is offline
Sage User
 
Join Date: Sep 2009
Location: Orlando, Florida
Posts: 26
Brainbone,

Any chance you'd be willing to help me with my Netflix program? I need to find the episode forward and back buttons in silverlight and I have no idea how to go about that. Any help you'd be willing to give is greatly appreciated!

-DH
Reply With Quote
  #59  
Old 04-20-2013, 06:40 AM
kiki51 kiki51 is offline
New Member
 
Join Date: Apr 2013
Posts: 1
Talking

Hi all

I'm using a silverlight player on a french website like Netflix.
The website is here :
http://www.canalsat.fr/decouvrir-liv...6-live-tv.html

I would like to take control of this player using your script, I have made some modification but it's difficult to have something good.

I think the interface of Netflix is very different then the interface of the website I want to remote control.

Now, I can close the player, play/pause is OK.
I have to build the code line for full screen, volume up and down, and navigate between channels.

I anyone can help me, it will be very cool

Thanks

Eric
Reply With Quote
  #60  
Old 04-22-2013, 01:44 PM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
There are a few mouse recording macro style programs that should be sufficient for replaying a mouse click on the screen. I don't think you'll get much help from this script - for starters, it's pretty old, and also, I'm not sure anyone really uses it anymore (I think those sage users that are using netflix are doing so via 7MC or PlayOn).
__________________
Buy Fuzzy a beer! (Fuzzy likes beer)

unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers.
Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA.
Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S
Other Clients: Mi Box in Master Bedroom, HD-200 in kids room
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
Remote Control Very Sensitive GlennPT Hardware Support 5 11-09-2009 02:52 AM
Remote control - change IR frequency?? glennsantacruz SageTV Media Extender 1 12-18-2008 09:40 AM
JP1 Universal Remote Control (URC-1067) for Hauppauge MVP krasev Hardware Support 0 12-22-2007 12:02 PM
Remote Control issue with 6.2.4 pilotguy7ca Hardware Support 5 07-09-2007 12:56 PM
Firefly Remote - can it control TV? bialio Hardware Support 0 05-25-2007 01:34 PM


All times are GMT -6. The time now is 11:18 AM.


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