0

I'm launching my python script with a .bat file. The python script open in the left side > ... driver.set_window_position(1, 0)...

I already know how to configure the size of the batch.

It's possible to specify the position where the window of the cmd will open up?

batch code:

MODE CON: COLS=80 LINES=30
python web.py
Kali Chad
  • 21
  • 4
  • my python code just is running on the desired position. I only want to change the batch windows position. – Kali Chad Apr 19 '21 at 08:10
  • edit your question to clariy that point In your question,you state `windows` plural, and you included code provides no context. VBS can be used to reposition the cmd window. [see my answer here for an example](https://stackoverflow.com/a/61046030/12343998) – T3RR0R Apr 19 '21 at 09:02
  • 2
    No, batch files are not capable of interacting with GUI windows (with the exception of `mode` and `start` commands, both of which cannot position windows)… – aschipfl Apr 19 '21 at 12:06
  • There are 100000 programs that can do this. Here is one https://winsourcecode.blogspot.com/2021/03/movewindowexe-moves-window.html?m=1 – user14797724 Apr 20 '21 at 01:52

0 Answers0