There is a window of a certain application, I want to control the location of the window on the screen using python. Those. set the coordinates, and the window will be moved according to the coordinates. How can I do that ?

  • Does your application have a window or someone else? - jfs

1 answer 1

Directly - no way. You need to look for the appropriate operating system and graphical shell APIs and bindings for them to Python. Moreover - they may not be ready. What to do? Cook the bike yourself. Win32API call options are described, for example, here . For X11, see examples here.

You also need to take into account that just so a normal graphical environment will not allow to manage other people's windows - just what you want. This is at least a serious security hole.

Strangers - I mean: not created by your specific application. This includes the windows of applications launched by other users including.

  • Or write a library in C. - Xyanight