Support
All support resources for our products. Here you can find answers to frequently asked questions, discuss with other users, recover a lost license code or file a support request.
Forum closed
This forum was closed and turned into an archive effective April 21, 2018. It is no longer possible to create new topics or reply to existing topics.

Thanks everyone for all the great questions and contributions over the years.

Please use the Contact form to get in touch.

Remote Buddy Forum

Overview 

AuthorThread
User

27.12.2012 07:57:20
Re: Remote doesn't control Hulu Desktop until a make it active window with mouse click

This posting is older than 6 months and can contain outdated information.
Here's another workaround that might be useful to others having this problem. I changed my command that activates the Hulu Desktop behavior to an applescript that: 
- activates Hulu Desktop 
- moves the mouse to the center of the screen 
- clicks down 
- clicks up

This lets Hulu launch and be in a state that's ready to accept remote commands.

The applescript is below. So far it's worked perfectly for me, but I'm not sure if any of the commands require additional software I already had installed on my Mini. If you're running a machine slower than my 2011 2.5 Mini you may need to increase the delay. Shorter delays than 5 sec didn't allow enough time on my Mini for Hulu to complete it's startup sequence.

tell application "Hulu Desktop" to activate 
delay 5 
tell application "System Events" 
-- put the mouse at the center of the screen 
do shell script "python -c 'from Quartz import *; CGEventPost(kCGHIDEventTap, CGEventCreateMouseEvent(None, kCGEventMouseMoved, CGPointMake(960,540), kCGMouseButtonLeft))'" 
-- click down 
do shell script "python -c 'from Quartz import *; CGEventPost(kCGHIDEventTap, CGEventCreateMouseEvent(None, kCGEventLeftMouseDown, CGPointMake(960,540), kCGMouseButtonLeft))'" 
-- click up 
do shell script "python -c 'from Quartz import *; CGEventPost(kCGHIDEventTap, CGEventCreateMouseEvent(None, kCGEventLeftMouseUp, CGPointMake(960,540), kCGMouseButtonLeft))'" 
end tell 

Thread-display::