uiautomation
uiautomation.py ファイル

クラス

class  uiautomation.uiautomation._AutomationClient
 
class  uiautomation.uiautomation._DllClient
 
class  uiautomation.uiautomation.ControlType
 
class  uiautomation.uiautomation.PatternId
 
class  uiautomation.uiautomation.PropertyId
 
class  uiautomation.uiautomation.AccessibleRole
 
class  uiautomation.uiautomation.AccessibleState
 
class  uiautomation.uiautomation.AccessibleSelection
 
class  uiautomation.uiautomation.AnnotationType
 
class  uiautomation.uiautomation.NavigateDirection
 
class  uiautomation.uiautomation.DockPosition
 
class  uiautomation.uiautomation.ScrollAmount
 
class  uiautomation.uiautomation.StyleId
 
class  uiautomation.uiautomation.RowOrColumnMajor
 
class  uiautomation.uiautomation.ExpandCollapseState
 
class  uiautomation.uiautomation.OrientationType
 
class  uiautomation.uiautomation.ToggleState
 
class  uiautomation.uiautomation.TextPatternRangeEndpoint
 
class  uiautomation.uiautomation.TextAttributeId
 
class  uiautomation.uiautomation.TextUnit
 
class  uiautomation.uiautomation.ZoomUnit
 
class  uiautomation.uiautomation.WindowInteractionState
 
class  uiautomation.uiautomation.WindowVisualState
 
class  uiautomation.uiautomation.ConsoleColor
 
class  uiautomation.uiautomation.GAFlag
 
class  uiautomation.uiautomation.MouseEventFlag
 
class  uiautomation.uiautomation.KeyboardEventFlag
 
class  uiautomation.uiautomation.InputType
 
class  uiautomation.uiautomation.ModifierKey
 
class  uiautomation.uiautomation.SW
 
class  uiautomation.uiautomation.SWP
 
class  uiautomation.uiautomation.MB
 
class  uiautomation.uiautomation.GWL
 
class  uiautomation.uiautomation.ProcessDpiAwareness
 
class  uiautomation.uiautomation.DpiAwarenessContext
 
class  uiautomation.uiautomation.Keys
 
class  uiautomation.uiautomation.ConsoleScreenBufferInfo
 
class  uiautomation.uiautomation.MOUSEINPUT
 
class  uiautomation.uiautomation.KEYBDINPUT
 
class  uiautomation.uiautomation.HARDWAREINPUT
 
class  uiautomation.uiautomation._INPUTUnion
 
class  uiautomation.uiautomation.INPUT
 
class  uiautomation.uiautomation.Rect
 
class  uiautomation.uiautomation.Logger
 
class  uiautomation.uiautomation.Bitmap
 
class  uiautomation.uiautomation.AnnotationPattern
 
class  uiautomation.uiautomation.CustomNavigationPattern
 
class  uiautomation.uiautomation.DockPattern
 
class  uiautomation.uiautomation.DragPattern
 
class  uiautomation.uiautomation.DropTargetPattern
 
class  uiautomation.uiautomation.ExpandCollapsePattern
 
class  uiautomation.uiautomation.GridItemPattern
 
class  uiautomation.uiautomation.GridPattern
 
class  uiautomation.uiautomation.InvokePattern
 
class  uiautomation.uiautomation.ItemContainerPattern
 
class  uiautomation.uiautomation.LegacyIAccessiblePattern
 
class  uiautomation.uiautomation.MultipleViewPattern
 
class  uiautomation.uiautomation.ObjectModelPattern
 
class  uiautomation.uiautomation.RangeValuePattern
 
class  uiautomation.uiautomation.ScrollItemPattern
 
class  uiautomation.uiautomation.ScrollPattern
 
class  uiautomation.uiautomation.SelectionItemPattern
 
class  uiautomation.uiautomation.SelectionPattern
 
class  uiautomation.uiautomation.SpreadsheetItemPattern
 
class  uiautomation.uiautomation.SpreadsheetPattern
 
class  uiautomation.uiautomation.StylesPattern
 
class  uiautomation.uiautomation.SynchronizedInputPattern
 
class  uiautomation.uiautomation.TableItemPattern
 
class  uiautomation.uiautomation.TablePattern
 
class  uiautomation.uiautomation.TextRange
 
class  uiautomation.uiautomation.TextChildPattern
 
class  uiautomation.uiautomation.TextEditPattern
 
class  uiautomation.uiautomation.TextPattern
 
class  uiautomation.uiautomation.TextPattern2
 
class  uiautomation.uiautomation.TogglePattern
 
class  uiautomation.uiautomation.TransformPattern
 
class  uiautomation.uiautomation.TransformPattern2
 
class  uiautomation.uiautomation.ValuePattern
 
class  uiautomation.uiautomation.VirtualizedItemPattern
 
class  uiautomation.uiautomation.WindowPattern
 
class  uiautomation.uiautomation.Control
 
class  uiautomation.uiautomation.AppBarControl
 
class  uiautomation.uiautomation.ButtonControl
 
class  uiautomation.uiautomation.CalendarControl
 
class  uiautomation.uiautomation.CheckBoxControl
 
class  uiautomation.uiautomation.ComboBoxControl
 
class  uiautomation.uiautomation.CustomControl
 
class  uiautomation.uiautomation.DataGridControl
 
class  uiautomation.uiautomation.DataItemControl
 
class  uiautomation.uiautomation.DocumentControl
 
class  uiautomation.uiautomation.EditControl
 
class  uiautomation.uiautomation.GroupControl
 
class  uiautomation.uiautomation.HeaderControl
 
class  uiautomation.uiautomation.HeaderItemControl
 
class  uiautomation.uiautomation.HyperlinkControl
 
class  uiautomation.uiautomation.ImageControl
 
class  uiautomation.uiautomation.ListControl
 
class  uiautomation.uiautomation.ListItemControl
 
class  uiautomation.uiautomation.MenuControl
 
class  uiautomation.uiautomation.MenuBarControl
 
class  uiautomation.uiautomation.MenuItemControl
 
class  uiautomation.uiautomation.TopLevel
 
class  uiautomation.uiautomation.PaneControl
 
class  uiautomation.uiautomation.ProgressBarControl
 
class  uiautomation.uiautomation.RadioButtonControl
 
class  uiautomation.uiautomation.ScrollBarControl
 
class  uiautomation.uiautomation.SemanticZoomControl
 
class  uiautomation.uiautomation.SeparatorControl
 
class  uiautomation.uiautomation.SliderControl
 
class  uiautomation.uiautomation.SpinnerControl
 
class  uiautomation.uiautomation.SplitButtonControl
 
class  uiautomation.uiautomation.StatusBarControl
 
class  uiautomation.uiautomation.TabControl
 
class  uiautomation.uiautomation.TabItemControl
 
class  uiautomation.uiautomation.TableControl
 
class  uiautomation.uiautomation.TextControl
 
class  uiautomation.uiautomation.ThumbControl
 
class  uiautomation.uiautomation.TitleBarControl
 
class  uiautomation.uiautomation.ToolBarControl
 
class  uiautomation.uiautomation.ToolTipControl
 
class  uiautomation.uiautomation.TreeControl
 
class  uiautomation.uiautomation.TreeItemControl
 
class  uiautomation.uiautomation.WindowControl
 
class  uiautomation.uiautomation.UIAutomationInitializerInThread
 

名前空間

 uiautomation.uiautomation
 

関数

str uiautomation.uiautomation.GetClipboardText ()
 
bool uiautomation.uiautomation.SetClipboardText (str text)
 
bool uiautomation.uiautomation.SetConsoleColor (int color)
 
bool uiautomation.uiautomation.ResetConsoleColor ()
 
int uiautomation.uiautomation.WindowFromPoint (int x, int y)
 
Tuple[int, int] uiautomation.uiautomation.GetCursorPos ()
 
bool uiautomation.uiautomation.SetCursorPos (int x, int y)
 
int uiautomation.uiautomation.GetDoubleClickTime ()
 
None uiautomation.uiautomation.mouse_event (int dwFlags, int dx, int dy, int dwData, int dwExtraInfo)
 
None uiautomation.uiautomation.keybd_event (int bVk, int bScan, int dwFlags, int dwExtraInfo)
 
bool uiautomation.uiautomation.PostMessage (int handle, int msg, int wParam, int lParam)
 
int uiautomation.uiautomation.SendMessage (int handle, int msg, int wParam, int lParam)
 
None uiautomation.uiautomation.Click (int x, int y, float waitTime=OPERATION_WAIT_TIME)
 
None uiautomation.uiautomation.MiddleClick (int x, int y, float waitTime=OPERATION_WAIT_TIME)
 
None uiautomation.uiautomation.RightClick (int x, int y, float waitTime=OPERATION_WAIT_TIME)
 
None uiautomation.uiautomation.PressMouse (int x, int y, float waitTime=OPERATION_WAIT_TIME)
 
None uiautomation.uiautomation.ReleaseMouse (float waitTime=OPERATION_WAIT_TIME)
 
None uiautomation.uiautomation.RightPressMouse (int x, int y, float waitTime=OPERATION_WAIT_TIME)
 
None uiautomation.uiautomation.RightReleaseMouse (float waitTime=OPERATION_WAIT_TIME)
 
None uiautomation.uiautomation.MiddlePressMouse (int x, int y, float waitTime=OPERATION_WAIT_TIME)
 
None uiautomation.uiautomation.MiddleReleaseMouse (float waitTime=OPERATION_WAIT_TIME)
 
None uiautomation.uiautomation.MoveTo (int x, int y, float moveSpeed=1, float waitTime=OPERATION_WAIT_TIME)
 
None uiautomation.uiautomation.DragDrop (int x1, int y1, int x2, int y2, float moveSpeed=1, float waitTime=OPERATION_WAIT_TIME)
 
None uiautomation.uiautomation.RightDragDrop (int x1, int y1, int x2, int y2, float moveSpeed=1, float waitTime=OPERATION_WAIT_TIME)
 
None uiautomation.uiautomation.MiddleDragDrop (int x1, int y1, int x2, int y2, float moveSpeed=1, float waitTime=OPERATION_WAIT_TIME)
 
None uiautomation.uiautomation.WheelDown (int wheelTimes=1, float interval=0.05, float waitTime=OPERATION_WAIT_TIME)
 
None uiautomation.uiautomation.WheelUp (int wheelTimes=1, float interval=0.05, float waitTime=OPERATION_WAIT_TIME)
 
int uiautomation.uiautomation.SetDpiAwareness (bool dpiAwarenessPerMonitor=True)
 
Tuple[int, int] uiautomation.uiautomation.GetScreenSize (bool dpiAwarenessPerMonitor=True)
 
Tuple[int, int] uiautomation.uiautomation.GetVirtualScreenSize (bool dpiAwarenessPerMonitor=True)
 
List[Rect] uiautomation.uiautomation.GetMonitorsRect (bool dpiAwarenessPerMonitor=False)
 
int uiautomation.uiautomation.GetPixelColor (int x, int y, int handle=0)
 
int uiautomation.uiautomation.MessageBox (str content, str title, int flags=MB.Ok)
 
bool uiautomation.uiautomation.SetForegroundWindow (int handle)
 
bool uiautomation.uiautomation.BringWindowToTop (int handle)
 
None uiautomation.uiautomation.SwitchToThisWindow (int handle)
 
int uiautomation.uiautomation.GetAncestor (int handle, int flag)
 
bool uiautomation.uiautomation.IsTopLevelWindow (int handle)
 
int uiautomation.uiautomation.GetWindowLong (int handle, int index)
 
int uiautomation.uiautomation.SetWindowLong (int handle, int index, int value)
 
bool uiautomation.uiautomation.IsIconic (int handle)
 
bool uiautomation.uiautomation.IsZoomed (int handle)
 
bool uiautomation.uiautomation.IsWindowVisible (int handle)
 
bool uiautomation.uiautomation.ShowWindow (int handle, int cmdShow)
 
bool uiautomation.uiautomation.MoveWindow (int handle, int x, int y, int width, int height, int repaint=1)
 
bool uiautomation.uiautomation.SetWindowPos (int handle, int hWndInsertAfter, int x, int y, int width, int height, int flags)
 
bool uiautomation.uiautomation.SetWindowTopmost (int handle, bool isTopmost)
 
str uiautomation.uiautomation.GetWindowText (int handle)
 
bool uiautomation.uiautomation.SetWindowText (int handle, str text)
 
str uiautomation.uiautomation.GetEditText (int handle)
 
str uiautomation.uiautomation.GetConsoleOriginalTitle ()
 
str uiautomation.uiautomation.GetConsoleTitle ()
 
bool uiautomation.uiautomation.SetConsoleTitle (str text)
 
int uiautomation.uiautomation.GetForegroundWindow ()
 
bool uiautomation.uiautomation.IsDesktopLocked ()
 
bool uiautomation.uiautomation.PlayWaveFile (str filePath=r 'C:\Windows\Media\notify.wav', bool isAsync=False, bool isLoop=False)
 
bool uiautomation.uiautomation.IsProcess64Bit (int processId)
 
bool uiautomation.uiautomation.IsUserAnAdmin ()
 
bool uiautomation.uiautomation.RunScriptAsAdmin (List[str] argv, str workingDirectory=None, int showFlag=SW.ShowNormal)
 
None uiautomation.uiautomation.SendKey (int key, float waitTime=OPERATION_WAIT_TIME)
 
None uiautomation.uiautomation.PressKey (int key, float waitTime=OPERATION_WAIT_TIME)
 
None uiautomation.uiautomation.ReleaseKey (int key, float waitTime=OPERATION_WAIT_TIME)
 
bool uiautomation.uiautomation.IsKeyPressed (int key)
 
INPUT uiautomation.uiautomation.MouseInput (int dx, int dy, int mouseData=0, int dwFlags=MouseEventFlag.LeftDown, int time_=0)
 
INPUT uiautomation.uiautomation.KeyboardInput (int wVk, int wScan, int dwFlags=KeyboardEventFlag.KeyDown, int time_=0)
 
INPUT uiautomation.uiautomation.HardwareInput (int uMsg, int param=0)
 
int uiautomation.uiautomation.SendInput (*inputs)
 
int uiautomation.uiautomation.SendUnicodeChar (str char, bool charMode=True)
 
None uiautomation.uiautomation.SendKeys (str text, float interval=0.01, float waitTime=OPERATION_WAIT_TIME, bool charMode=True, bool debug=False)
 
def uiautomation.uiautomation.GetPatternIdInterface (int patternId)
 
def uiautomation.uiautomation.CreatePattern (int patternId, ctypes.POINTER(comtypes.IUnknown) pattern)
 
None uiautomation.uiautomation.InitializeUIAutomationInCurrentThread ()
 
None uiautomation.uiautomation.UninitializeUIAutomationInCurrentThread ()
 
None uiautomation.uiautomation.SetGlobalSearchTimeout (float seconds)
 
bool uiautomation.uiautomation.WaitForExist (Control control, float timeout)
 
bool uiautomation.uiautomation.WaitForDisappear (Control control, float timeout)
 
def uiautomation.uiautomation.WalkTree (top, Callable[[TreeNode], List[TreeNode]] getChildren=None, Callable[[TreeNode], TreeNode] getFirstChild=None, Callable[[TreeNode], TreeNode] getNextSibling=None, Callable[[TreeNode, int], bool] yieldCondition=None, bool includeTop=False, int maxDepth=0xFFFFFFFF)
 
PaneControl uiautomation.uiautomation.GetRootControl ()
 
Control uiautomation.uiautomation.GetFocusedControl ()
 
Control uiautomation.uiautomation.GetForegroundControl ()
 
WindowControl uiautomation.uiautomation.GetConsoleWindow ()
 
Control uiautomation.uiautomation.ControlFromPoint (int x, int y)
 
Control uiautomation.uiautomation.ControlFromPoint2 (int x, int y)
 
Control uiautomation.uiautomation.ControlFromCursor ()
 
Control uiautomation.uiautomation.ControlFromCursor2 ()
 
Control uiautomation.uiautomation.ControlFromHandle (int handle)
 
bool uiautomation.uiautomation.ControlsAreSame (Control control1, Control control2)
 
def uiautomation.uiautomation.WalkControl (Control control, bool includeTop=False, int maxDepth=0xFFFFFFFF)
 
None uiautomation.uiautomation.LogControl (Control control, int depth=0, bool showAllName=True, bool showPid=False)
 
None uiautomation.uiautomation.EnumAndLogControl (Control control, int maxDepth=0xFFFFFFFF, bool showAllName=True, bool showPid=False, int startDepth=0)
 
None uiautomation.uiautomation.EnumAndLogControlAncestors (Control control, bool showAllName=True, bool showPid=False)
 
Control uiautomation.uiautomation.FindControl (Control control, Callable[[Control, int], bool] compare, int maxDepth=0xFFFFFFFF, bool findFromSelf=False, int foundIndex=1)
 
None uiautomation.uiautomation.ShowDesktop (float waitTime=1)
 
None uiautomation.uiautomation.WaitHotKeyReleased (Tuple[int, int] hotkey)
 
None uiautomation.uiautomation.RunByHotKey (Dict[Tuple[int, int], Callable] keyFunctions, Tuple[int, int] stopHotKey=None, Tuple[int, int] exitHotKey=(ModifierKey.Control, Keys.VK_D), bool waitHotKeyReleased=True)
 

変数

 uiautomation.uiautomation.TreeNode = Any
 
string uiautomation.uiautomation.AUTHOR_MAIL = 'yinkaisheng@live.com'
 
string uiautomation.uiautomation.METRO_WINDOW_CLASS_NAME = 'Windows.UI.Core.CoreWindow'
 
float uiautomation.uiautomation.SEARCH_INTERVAL = 0.5
 
int uiautomation.uiautomation.MAX_MOVE_SECOND = 1
 
int uiautomation.uiautomation.TIME_OUT_SECOND = 10
 
float uiautomation.uiautomation.OPERATION_WAIT_TIME = 0.5
 
int uiautomation.uiautomation.MAX_PATH = 260
 
bool uiautomation.uiautomation.DEBUG_SEARCH_TIME = False
 
bool uiautomation.uiautomation.DEBUG_EXIST_DISAPPEAR = False
 
int uiautomation.uiautomation.S_OK = 0
 
int uiautomation.uiautomation.IsNT6orHigher = 6
 
 uiautomation.uiautomation.ProcessTime = time.perf_counter
 
dictionary uiautomation.uiautomation.ControlTypeNames
 
dictionary uiautomation.uiautomation.PatternIdNames
 
dictionary uiautomation.uiautomation.PropertyIdNames
 
dictionary uiautomation.uiautomation.SpecialKeyNames
 
dictionary uiautomation.uiautomation.CharacterCodes
 
dictionary uiautomation.uiautomation.PatternConstructors
 
dictionary uiautomation.uiautomation.ControlConstructors
 
 uiautomation.uiautomation.c = ctor()
 
 uiautomation.uiautomation.notepad = WindowControl(searchDepth=1, ClassName='Notepad')
 
 uiautomation.uiautomation.lp = notepad.GetLegacyIAccessiblePattern()
 
 uiautomation.uiautomation.value = notepad.GetPropertyValue(k)
 
 uiautomation.uiautomation.children = notepad.GetChildren()
 
string uiautomation.uiautomation.hello = '{Ctrl}{End}{Enter}Hello World! 你好世界!'