pywinauto_recorder.player.move_window

pywinauto_recorder.player.move_window(element_path=None, x=0, y=0, width=0, height=0)[source]

Moves and resizes a window

Parameters
  • element_path (Union[str, UIAWrapper, NewType()(UI_Coordinates, (float, float)), None]) – element path

  • x (Optional[int]) – new x coordinate of the upper left corner of the window

  • y (Optional[int]) – new y coordinate of the upper left corner of the window

  • width (Optional[int]) – new width of the window, if 0 then the with and the height are not modified

  • height (Optional[int]) – new height of the window, if 0 then the with and the height are not modified

Returns

Pywinauto wrapper of found window

Raises

FailedSearch – if no element found