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)
| 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 | ''' |
nothing calls this directly
no outgoing calls
no test coverage detected