-
-
Save LordOkami/11364188 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Download https://github.com/dz0ny/leapcast/archive/master.zip | |
2. Extract zip to C:\leapcast | |
3.1 Download Python 2.7: | |
x86: http://www.python.org/ftp/python/2.7.5/python-2.7.5.msi | |
x64: http://www.python.org/ftp/python/2.7.5/python-2.7.5.amd64.msi | |
3.2 Install Python to C:\Python27 | |
NOTE: If you have a newer version, install 2.7.5 and edit the environment variable and change for example "C:\Python33" to "C:\Python27". | |
4.1 Download Setuptools here: http://www.lfd.uci.edu/~gohlke/pythonlibs/#setuptools | |
x86: setuptools-0.9.8.win32-py2.7.exe | |
x64: setuptools-0.9.8.win-amd64-py2.7.exe | |
4.2 Install Setuptools to path suggested by installer (should be C:\Python27\Lib\site-packages\) | |
5.1 Download Pip here: http://www.lfd.uci.edu/~gohlke/pythonlibs/#pip | |
x86: pip-1.4.1.win32-py2.7.exe | |
x64: pip-1.4.1.win-amd64-py2.7.exe | |
5.2 Install Pip to path suggested by installer (should be C:\Python27\Lib\site-packages\) | |
__Update__ As of version 0.0.2 Twisted is no longer required. If you don't use 0.0.1, skip to step 7. | |
6.1 Download Twisted here: http://www.lfd.uci.edu/~gohlke/pythonlibs/#twisted | |
x86: Twisted-13.1.0.win32-py2.7.exe | |
x64: Twisted-13.1.0.win-amd64-py2.7.exe | |
6.2 Install Twisted to path suggested by installer (should be C:\Python27\Lib\site-packages\) | |
7. Edit "PATH" environment variable (under "system variables") to include separate "C:\Python27\Scripts" using ; to separate them. | |
8. Press "Windows" + "r" keys (or Start > Run), type "powershell" (without quotation marks) and hit Enter. | |
9. Type | |
cd C:\leapcast | |
10. Type | |
python setup.py develop | |
11. If succeded, you'll get a message that leapcast was added to "C:\Python27\Scripts". | |
12. To start leapcast, type | |
x86: leapcast --name Name-Of-Device --chrome 'C:\\PROGRA~1\\Google\\Chrome\\Application\\chrome.exe' --fullscreen | |
x64: leapcast --name Name-Of-Device --chrome 'C:\\PROGRA~2\\Google\\Chrome\\Application\\chrome.exe' --fullscreen | |
Update: For simplicity I added a VBScript. On double-click it will open a command prompt (in minimized window mode) and executes the command to start the Leapcast app. | |
# A quick video demo is available here: http://www.youtube.com/watch?v=n1wLy1LQV_g |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
' Start Leapcast (https://github.com/dz0ny/leapcast/) with a double-click. | |
' | |
' Save this VBScript as "start-leapcast.vbs" somewhere on your Windows PC. | |
' Now double-click it to start Leapcast (command prompt will be minimized | |
' by default). More info here: https://gist.github.com/eyecatchup/6219118 | |
Set WshShell = WScript.CreateObject("WScript.Shell") | |
' The display name for the emulated Chromecast. | |
DeviceName = "Leapcast" | |
' NOTE: In case you edit the paths to the leapcast.exe & chrome.exe files | |
' below, you should use '\\' (double-backslash) to separate the pathnames. | |
' More info here: http://docs.python.org/2/library/os.html#os.sep | |
' | |
' If in pathname, replace "Program Files" with "PROGRA~1". | |
' If in pathname, replace "Program Files (x86)" with "PROGRA~2". | |
' The absolute path to the leapcast.exe file. | |
LeapcastExeAbsPath = "C:\\Python27\\Scripts\\leapcast.exe" | |
' The absolute path to the chrome.exe file. | |
ChromeExeAbsPath = "C:\\PROGRA~2\\Google\\Chrome\\Application\\chrome.exe" | |
' Do not edit below this line unless you know what you are doing! | |
Cmd = LeapcastExeAbsPath & " --name " & DeviceName & " --chrome " | |
Cmd = Cmd & ChromeExeAbsPath & " --fullscreen" | |
' The second parameter on WshShell.Run() is the intWindowStyle. A value of | |
' "7" tells it to open the command prompt as a minimized window & that the | |
' active window remains active. To change the default window display style | |
' checkout the docs: http://msdn.microsoft.com/en-us/library/d5fk67ky.aspx | |
Return = WshShell.Run(Cmd, 7, True) | |
Set WshShell = Nothing |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment