Advertisement
Guest User

Untitled

a guest
Nov 9th, 2010
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. #include <String.au3>
  2. #include <Array.au3>
  3. #include <Constants.au3>
  4. #Include <File.au3>
  5.  
  6.  
  7. dim $xbmcpath
  8. dim $displayswitch
  9. $displayswitch = "C:\Windows\SysWOW64\DisplaySwitch.exe"
  10. ;Replace with your xbmc.exe path
  11. $xbmcpath = "c:\program files\XBMC\xbmc.exe"
  12.  
  13. ConsoleWrite($xbmcpath)
  14.  
  15. gotoTvWin7()
  16.  
  17. ;If Your not using the portable xbmc comment this line and use the other one
  18. run($xbmcpath & " -p")
  19. ;run($xbmcpath)
  20.  
  21. fliploop()
  22. exit
  23.  
  24. func fliploop()
  25.  
  26.  
  27. while 1
  28. Sleep(500)
  29. if ProcessExists("xbmc.exe") = false Then
  30. gotoTvPrimaryScreen
  31. EndIf
  32.  
  33. WEnd
  34. endfunc
  35.  
  36. ;/internal
  37. ;/clone
  38. ;/external
  39. ;/extend
  40. func gotoTvWin7()
  41. ShellExecute($displayswitch ,"/external")
  42. EndFunc
  43. func gotoTvPrimaryScreen()
  44. ShellExecute($displayswitch ,"/internal")
  45. EndFunc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement