uiautomation
uiautomation.uiautomation.WindowPattern クラス

公開メンバ関数

def __init__ (self, pattern=None)
 
bool Close (self, float waitTime=OPERATION_WAIT_TIME)
 
bool CanMaximize (self)
 
bool CanMinimize (self)
 
bool IsModal (self)
 
bool IsTopmost (self)
 
int WindowInteractionState (self)
 
int WindowVisualState (self)
 
bool SetWindowVisualState (self, int state, float waitTime=OPERATION_WAIT_TIME)
 
bool WaitForInputIdle (self, int milliseconds)
 

公開変数類

 pattern
 

構築子と解体子

◆ __init__()

def uiautomation.uiautomation.WindowPattern.__init__ (   self,
  pattern = None 
)
Refer https://docs.microsoft.com/en-us/windows/desktop/api/uiautomationclient/nn-uiautomationclient-iuiautomationwindowpattern

メソッド詳解

◆ CanMaximize()

bool uiautomation.uiautomation.WindowPattern.CanMaximize (   self)
Property CanMaximize.
Call IUIAutomationWindowPattern::get_CurrentCanMaximize.
Return bool, indicates whether the window can be maximized.
Refer https://docs.microsoft.com/en-us/windows/desktop/api/uiautomationclient/nf-uiautomationclient-iuiautomationwindowpattern-get_currentcanmaximize

◆ CanMinimize()

bool uiautomation.uiautomation.WindowPattern.CanMinimize (   self)
Property CanMinimize.
Call IUIAutomationWindowPattern::get_CurrentCanMinimize.
Return bool, indicates whether the window can be minimized.
Refer https://docs.microsoft.com/en-us/windows/desktop/api/uiautomationclient/nf-uiautomationclient-iuiautomationwindowpattern-get_currentcanminimize

◆ Close()

bool uiautomation.uiautomation.WindowPattern.Close (   self,
float   waitTime = OPERATION_WAIT_TIME 
)
Call IUIAutomationWindowPattern::Close.
Close the window.
waitTime: float.
Refer https://docs.microsoft.com/en-us/windows/desktop/api/uiautomationclient/nf-uiautomationclient-iuiautomationwindowpattern-close

◆ IsModal()

bool uiautomation.uiautomation.WindowPattern.IsModal (   self)
Property IsModal.
Call IUIAutomationWindowPattern::get_CurrentIsModal.
Return bool, indicates whether the window is modal.
Refer https://docs.microsoft.com/en-us/windows/desktop/api/uiautomationclient/nf-uiautomationclient-iuiautomationwindowpattern-get_currentismodal

◆ IsTopmost()

bool uiautomation.uiautomation.WindowPattern.IsTopmost (   self)
Property IsTopmost.
Call IUIAutomationWindowPattern::get_CurrentIsTopmost.
Return bool, indicates whether the window is the topmost element in the z-order.
Refer https://docs.microsoft.com/en-us/windows/desktop/api/uiautomationclient/nf-uiautomationclient-iuiautomationwindowpattern-get_currentistopmost

◆ SetWindowVisualState()

bool uiautomation.uiautomation.WindowPattern.SetWindowVisualState (   self,
int  state,
float   waitTime = OPERATION_WAIT_TIME 
)
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/windows/desktop/api/uiautomationclient/nf-uiautomationclient-iuiautomationwindowpattern-setwindowvisualstate

◆ WaitForInputIdle()

bool uiautomation.uiautomation.WindowPattern.WaitForInputIdle (   self,
int  milliseconds 
)
Call IUIAutomationWindowPattern::WaitForInputIdle.
Cause the calling code to block for the specified time or
    until the associated process enters an idle state, whichever completes first.
milliseconds: int.
Return bool, True if succeed otherwise False.
Refer https://docs.microsoft.com/en-us/windows/desktop/api/uiautomationclient/nf-uiautomationclient-iuiautomationwindowpattern-waitforinputidle

◆ WindowInteractionState()

int uiautomation.uiautomation.WindowPattern.WindowInteractionState (   self)
Property WindowInteractionState.
Call IUIAutomationWindowPattern::get_CurrentWindowInteractionState.
Return int, a value in class `WindowInteractionState`,
            the current state of the window for the purposes of user interaction.
Refer https://docs.microsoft.com/en-us/windows/desktop/api/uiautomationclient/nf-uiautomationclient-iuiautomationwindowpattern-get_currentwindowinteractionstate

◆ WindowVisualState()

int uiautomation.uiautomation.WindowPattern.WindowVisualState (   self)
Property WindowVisualState.
Call IUIAutomationWindowPattern::get_CurrentWindowVisualState.
Return int, a value in class `WindowVisualState`,
            the visual state of the window; that is, whether it is in the normal, maximized, or minimized state.
Refer https://docs.microsoft.com/en-us/windows/desktop/api/uiautomationclient/nf-uiautomationclient-iuiautomationwindowpattern-get_currentwindowvisualstate

メンバ詳解

◆ pattern

uiautomation.uiautomation.WindowPattern.pattern

このクラス詳解は次のファイルから抽出されました: