How to position a socket server console during a python script run on a second TFTscreen by default instead of on main TFT screen?

你。 提交于 2019-12-14 03:36:38

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!