MCPcopy Create free account
hub / github.com/cluic/wxauto / SetWindowVisualState

Method SetWindowVisualState

wxauto/uiautomation.py:5197–5208  ·  view source on GitHub ↗

Call IUIAutomationWindowPattern::SetWindowVisualState. Minimize, maximize, or restore the window. state: int, a value in class `WindowVisualState`. waitTime: float. Return bool, True if succeed otherwise False. Refer https://docs.microsoft.com/en-us/w

(self, state: int, waitTime: float = OPERATION_WAIT_TIME)

Source from the content-addressed store, hash-verified

5195 return self.pattern.CurrentWindowVisualState
5196
5197 def SetWindowVisualState(self, state: int, waitTime: float = OPERATION_WAIT_TIME) -> bool:
5198 """
5199 Call IUIAutomationWindowPattern::SetWindowVisualState.
5200 Minimize, maximize, or restore the window.
5201 state: int, a value in class `WindowVisualState`.
5202 waitTime: float.
5203 Return bool, True if succeed otherwise False.
5204 Refer https://docs.microsoft.com/en-us/windows/desktop/api/uiautomationclient/nf-uiautomationclient-iuiautomationwindowpattern-setwindowvisualstate
5205 """
5206 ret = self.pattern.SetWindowVisualState(state) == S_OK
5207 time.sleep(waitTime)
5208 return ret
5209
5210 def WaitForInputIdle(self, milliseconds: int) -> bool:
5211 '''

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected