问题
After performing some excavation while using the words "python, execute, script, on second, tft screen" I gave up searching for an answer.
My question - what would I need to do if I want to run "my_imaginary_example_script.py" by default in its own position on a second TFT screen instead of blund on the main TFT screen?
The py-file is in this case a socket_server script; no GUI, the output looks just alike DOS-box type but without shell functions.
回答1:
(windows10)
Based on zwer his comment I tried and failed with cmdow
but could search with additional words like (cmdow, console, etc.) and found a very nice comment on superusers here from Robert.
Solution for permanent replacement of server console (conhost.exe):
1 - press Alt
+ SHIFT
and;
2 - go to "properties";
3 - select tab "layout";
4 - go to groupbox "window selection";
5 - uncheck the box "let system set position"
Voila... next time this console is started its on the new position.
In addition: window size and hscreen buffer can also be addressed there. No apparent need to use cmdow
anymore. Above all... on windows10 Ctrl-C
no longer works as exit/quite for this type of server console. Use Alt
+ F4
instead.
来源:https://stackoverflow.com/questions/47783409/how-to-position-a-socket-server-console-during-a-python-script-run-on-a-second-t