0

I would like to code a program that open a specific application such as glary utilities and set its (x,y) position on the screen.

For the first part, I know that I can use subprocess.popen() but for the position of the window, I don't know what to do.

I thank you in advance for your help.

martineau
  • 119,623
  • 25
  • 170
  • 301
  • Doing so—if it's even possible—would depend on your OS. – martineau Dec 23 '21 at 10:59
  • I'm on windows 10. – Lunette Dec 23 '21 at 11:07
  • 2
    you can use the `ctypes` library and check out the [Windows API for managing windows](https://learn.microsoft.com/en-us/windows/win32/winmsg/window-functions), you can call those function with `ctypes`. Or use `win32gui`. Also an example: https://stackoverflow.com/questions/45827930/changing-the-position-of-the-console-window-with-python-windows – Matiiss Dec 23 '21 at 11:45
  • Thanks, I will try this evening – Lunette Dec 23 '21 at 13:06
  • Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. – Community Jan 01 '22 at 02:52

0 Answers0