2012-07-09, 03:00
Ok... so we stay into true fullscreen. Another try. Download another small application named NirCmd and also extract if into C:\WINDOWS directory. Then use a script like this :
Does it fix your XBMC restoring focus problem?
Code:
#Include <GUIConstantsEx.au3>
#Include <WindowsConstants.au3>
HotKeySet("{ESC}", "Terminate")
If $CmdLine[0] == 1 Then
Run("nomousy.exe /hide", "", @SW_HIDE)
GUICreate('MyGUI', @DesktopWidth, @DesktopHeight, 0, 0, BitOR($WS_POPUP, $WS_EX_TOPMOST))
GUICtrlCreatePic('C:\Program Files (x86)\snes9x\loading_wallpaper.gif', 0, 0, @DesktopWidth, @DesktopHeight)
GUISetState()
Run("pssuspend XBMC.exe", "", @SW_HIDE)
Run( '"C:\Program Files (x86)\snes9x\snes9x-x64.exe" -fullscreen -autostart "' & $CmdLine[1] & '"', "", @SW_HIDE)
While 1
Sleep(100)
WEnd
EndIf
Terminate
Func Terminate()
GUISetState()
ProcessClose( "snes9x-x64.exe" )
Run("pssuspend -r XBMC.exe", "", @SW_HIDE)
Run ( "nircmd win max process XBMC.exe" )
Run("nomousy.exe", "", @SW_HIDE)
Exit 0
EndFunc
Does it fix your XBMC restoring focus problem?