Sys.argv (imported from the native Python sys module) can be used to capture variables from the command line for use with n() (similar to %* in batch), if needed. # Either of the subprocess calls below will work when executing Windows. # Native Python module for running external applications, etc. Plane9 - Windowed.py (Python 3 on Windows) # Example demonstrating how to execute Windows ".lnk" files with Python. "Plane9 - Windowed.bat" -width 600 -height 400.Įx. Plane9 - Windowed.bat "C:\path\to\Plane9 - Windowed.lnk" %*Īllowing e.g. You can add %* to this batch file if you need to pass (additional) command line parameters ex.:Įx. Plane9 - Windowed.bat "C:\path\to\Plane9 - Windowed.lnk" lnk file and simply use -w in the Arguments field, as shown in your original screenshot.Įx. Target: "C:\Program Files (x86)\Plane9\Plane9.exe" in your. Note that if you want to use the same general options as in your original screenshot, you do not necessarily need to include -w in the Target field of the lnk file. If this doesn't work, I might try using the batch file example below and executing that in your application's File Path field instead (ex. "C:\path\to\Plane9 - Windowed.lnk" in your application's File Path field. lnk file to Plane9.exe with the -w option (as shown above) and try using e.g. Unfortunately, I don't have the application you're using in order to test its ability to execute. lnk (Windows shortcut link) file with your preferred options e.g.: Attempting to execute Plane9.exe directly from (at least some) external sources appears to result in the problem above (Plane9 starting, but no visualization being displayed).Ī simple fix for this is to "execute" a standard Windows. However, when trying the key out, I get Plane9 in windowed mode but the screen is just black.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |