2012-05-21, 17:58
kevev Wrote:...it seems that when xbmcfom takes over and puts the video in kiosk mode the IE window looses focus. It seems like your app may be grabbing focus and that is why the "f" or click on fullscreen(whichever the app is doing) is not being translated because of this...
XBMCFoM doesn't put the video in Kiosk mode...XBMCFlicks does that. FoM simply sits in the background until it sees a Netflix window go active and when it does it responds by putting it into full screen (via a center-screen click and an "f"). If FoM grabs focus of anything it is because it already sees Netflix as active
Lines 87-94 in the AutoIt (.au3) file consist of the following:
Code:
if WinActive("netflix") or WinActive("silverlight") Then
if $newNFLaunchFlag = 1 Then
;Bring Netflix into Fullscreen
While NOT WinActive("Silverlight")
MouseMove(@DesktopWidth / 2, @DesktopHeight / 2,0)
MouseClick("left", @DesktopWidth / 2, @DesktopHeight / 2)
send("f")
WEnd
This method is entirely different than the previous (pre-2.0b) methods that I used to go into full screen. The fact that neither method seems to work on your machine would indicate a problem with your setup. I had requested you install and try on a different machine and never got any feedback from that.
As you can see from the code above, we wait until Netflix is active (this technically will be any window with "netflix" in the title, so it will match on "Netflix - Windows Internet Explorer" which should be the title window for an IE launch or "Netflix - Google Chrome", etc...).
The code then goes on to say that as long as Silverlight is not the active window (which should be true whenever Netflix is NOT in full screen), then go ahead and move the mouse to the middle of the screen, click the middle, and send "f". So, you see it already does click in the middle of the screen, and should be repeatedly doing this until full screen happens.
I can only assume that you are doing something nonstandard that is either causing this whole subroutine not to function properly, or else something else running on the system which would interfere with these operations. As those things can be any one of hundreds or thousands of possible scenarios there is no way for me to know or account for them.
I know of (based only on forum posts) only a handful of users using this program and no one else has reported these issues. Those aren't big numbers, but I suspect there are at least 3x that many silent users as most people won't even post if they don't have a problem. I myself have tried on 3 systems (all Windows 7 Enterprise 64-bit) and do not experience the problem.
What you can try is this. Change the code above to this:
Quote: if WinActive("netflix") or WinActive("silverlight") Then
if $newNFLaunchFlag = 1 Then
;Bring Netflix into Fullscreen
While NOT WinActive("Silverlight")
beep(200,500)
MouseMove(@DesktopWidth / 2, @DesktopHeight / 2,0)
MouseClick("left", @DesktopWidth / 2, @DesktopHeight / 2)
send("f")
WEnd
This simply adds dull audible beep in to let you hear that it is in the subroutine and silverlight is NOT active. If you keep hearing the beep, it means that it detects Netflix as open, but not in fullscreen, if the beep keeps sounding it means that the method of clicking in the middle and pressing "f" is not bringing it to full screen. If you don't get any beeps at all, then it doesn't seem to be detecting that you have Netflix active.
You indicated from a previous post that you have some experience in the past with AutoIt. I would suggest you start doing some debugging on your own as the full screen code is now entirely in autoit (not sikuli). I will assist where I can and should you find something that will make this work on non-standard setups I will try to integrate into the main code.
Here is another trick to try (do it after making the beep modification so you can get audio feedback as well).
Launch XBMCFoM and then type in Start > Run "notepad netflix"
It will ask if you want to create the file, say yes. This will open a notepad instance of a file called netflix. It should be active (in the foreground). This means that the AutoIt script will detect netflix as open...so you should start hearing the beep and seeing the "f" key typed in the notepad windows....you should also see the mouse constantly moving back to screen center.
You can also test with IE outside of XBMC by launching your movie url with the format:
iexplore -k http://movies.netflix.com/WiPlayer?movie...XXXXXXXXXX
you can get the full url from any launched show in IE. That will launch in Kiosk mode which is the same way XBMCFlicks (NOT XBMCFoM) launches it.