@api.check(<NUM_LIT:2>, "<STR_LIT>")<EOL>def win_get_state(title, **kwargs):
text = kwargs.get("<STR_LIT:text>", "<STR_LIT>")<EOL>res = AUTO_IT.AU3_WinGetState(LPCWSTR(title), LPCWSTR(text))<EOL>return res<EOL>
Retrieves the state of a given window.
:param title:
:param text:
:return:
1 = Window exists
2 = Window is visible
4 = Windows is enabled
8 = Window is active
16 = Window is minimized
32 = Windows is maximized