Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <String.au3>
- #include <Array.au3>
- #include <Constants.au3>
- #Include <File.au3>
- dim $xbmcpath
- dim $displayswitch
- $displayswitch = "C:\Windows\SysWOW64\DisplaySwitch.exe"
- ;Replace with your xbmc.exe path
- $xbmcpath = "c:\program files\XBMC\xbmc.exe"
- ConsoleWrite($xbmcpath)
- gotoTvWin7()
- ;If Your not using the portable xbmc comment this line and use the other one
- run($xbmcpath & " -p")
- ;run($xbmcpath)
- fliploop()
- exit
- func fliploop()
- while 1
- Sleep(500)
- if ProcessExists("xbmc.exe") = false Then
- gotoTvPrimaryScreen
- EndIf
- WEnd
- endfunc
- ;/internal
- ;/clone
- ;/external
- ;/extend
- func gotoTvWin7()
- ShellExecute($displayswitch ,"/external")
- EndFunc
- func gotoTvPrimaryScreen()
- ShellExecute($displayswitch ,"/internal")
- EndFunc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement