-
Notifications
You must be signed in to change notification settings - Fork 0
Window
Finding window by title.
ew32g.window(title)Returns window
HWND is a "handle to a window" and is part of the Win32 API.
window.hwndReturns int
Bring window to top, set foreground window.
window.focus()Returns None
Show window after hiding window.
window.show()Returns None
Hide window bebfore showing window.
window.hide()Returns None
Move window to absolute coordinates.
window.move(x, y)Returns None
Change size of window.
window.resize(width, height)Returns None
Make the minimum available window size.
window.minimize()Returns tuple
Make the maximum available window size.
window.maximize()Returns tuple
window.titleReturns str
To change this value, there are a hide() and show().
window.visibleReturns bool
To change this value, there is a move function.
window.positionReturns tuple
To change this value, there is a resize function.
window.sizeReturns tuple
window.screenshot(path)Returns str
Position the window in the center of the screen/specified coordinates.
window.center(x=SCREEN_WIDTH,y=SCREEN_HEIGHT)Returns None
To be honest, I haven't tested this function, but it should work.
window.destroy()Returns None