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 pathx (
Optional[int]) – new x coordinate of the upper left corner of the windowy (
Optional[int]) – new y coordinate of the upper left corner of the windowwidth (
Optional[int]) – new width of the window, if 0 then the with and the height are not modifiedheight (
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