MCPcopy Create free account

hub / github.com/cluic/wxauto / functions

Functions775 in github.com/cluic/wxauto

↓ 100 callersMethodGetPattern
Call IUIAutomationElement::GetCurrentPattern. Get a new pattern by pattern id if it supports the pattern. patternId: int, a v
wxauto/uiautomation.py:5715
↓ 63 callersMethodinstance
Singleton instance (this prevents com creation on import).
wxauto/uiautomation.py:90
↓ 60 callersMethodClick
x: int, if < 0, click self.BoundingRectangle.right + x, if not None, ignore ratioX. y: int, if < 0, click self.BoundingRectangle.bott
wxauto/uiautomation.py:6129
↓ 55 callersMethodSendKeys
Make control have focus first and type keys. `self.SetFocus` may not work for some controls, you may need to click it to make it have
wxauto/uiautomation.py:6318
↓ 54 callersMethodWrite
log: any type. consoleColor: int, a value in class `ConsoleColor`, such as `ConsoleColor.DarkGreen`. writeToFile: bool.
wxauto/uiautomation.py:2863
↓ 51 callersMethodButtonControl
(self, searchDepth=0xFFFFFFFF, searchInterval=SEARCH_INTERVAL, foundIndex=1, element=0, **searchProperties)
wxauto/uiautomation.py:6407
↓ 50 callersMethodGetChildren
Return List[Control], a list of `Control` subclasses.
wxauto/uiautomation.py:5955
↓ 41 callersMethodAddSearchProperties
Add search properties using `dict.update`. searchProperties: dict, same as searchProperties in `Control.__init__`.
wxauto/uiautomation.py:5339
↓ 41 callersMethod__init__
(self, left: int = 0, top: int = 0, right: int = 0, bottom: int = 0)
wxauto/uiautomation.py:1687
↓ 33 callersMethodExists
maxSearchSeconds: float searchIntervalSeconds: float Find control every searchIntervalSeconds seconds in maxSearchSeconds sec
wxauto/uiautomation.py:6000
↓ 29 callersMethodCreateControlFromElement
Create a concreate `Control` from a com type `IUIAutomationElement`. element: `ctypes.POINTER(IUIAutomationElement)`. Return
wxauto/uiautomation.py:5308
↓ 26 callersMethodListControl
(self, searchDepth=0xFFFFFFFF, searchInterval=SEARCH_INTERVAL, foundIndex=1, element=0, **searchProperties)
wxauto/uiautomation.py:6449
↓ 23 callersMethodTextControl
(self, searchDepth=0xFFFFFFFF, searchInterval=SEARCH_INTERVAL, foundIndex=1, element=0, **searchProperties)
wxauto/uiautomation.py:6503
↓ 22 callersMethodEditControl
(self, searchDepth=0xFFFFFFFF, searchInterval=SEARCH_INTERVAL, foundIndex=1, element=0, **searchProperties)
wxauto/uiautomation.py:6431
↓ 17 callersMethodGetFirstChildControl
Return `Control` subclass or None.
wxauto/uiautomation.py:5851
↓ 17 callersMethodWriteLine
log: any type. consoleColor: int, a value in class `ConsoleColor`, such as `ConsoleColor.DarkGreen`. writeToFile: bool.
wxauto/uiautomation.py:2907
↓ 17 callersMethodwidth
(self)
wxauto/uiautomation.py:1693
↓ 16 callersMethod_lang
(self, text)
wxauto/wxauto.py:792
↓ 14 callersMethodGetProgenyControl
Get the nth control in the mth depth. depth: int, starts with 0. index: int, starts with 0. control_type: `Control` o
wxauto/uiautomation.py:5937
↓ 14 callersMethodPaneControl
(self, searchDepth=0xFFFFFFFF, searchInterval=SEARCH_INTERVAL, foundIndex=1, element=0, **searchProperties)
wxauto/uiautomation.py:6464
↓ 14 callersMethodWindowControl
(self, searchDepth=0xFFFFFFFF, searchInterval=SEARCH_INTERVAL, foundIndex=1, element=0, **searchProperties)
wxauto/uiautomation.py:6524
↓ 14 callersFunctionmouse_event
mouse_event from Win32.
wxauto/uiautomation.py:1821
↓ 13 callersMethodheight
(self)
wxauto/uiautomation.py:1696
↓ 13 callersMethodlightred
(text, *args, **kwargs)
wxauto/color.py:66
↓ 12 callersMethodColorfullyWrite
log: str. consoleColor: int, a value in class `ConsoleColor`, such as `ConsoleColor.DarkGreen`. writeToFile: bool. pr
wxauto/uiautomation.py:2918
↓ 12 callersFunctionFindWindow
(classname=None, name=None)
wxauto/utils.py:202
↓ 12 callersMethodGetParentControl
Return `Control` subclass or None.
wxauto/uiautomation.py:5844
↓ 12 callersFunctionGetScreenSize
dpiAwarenessPerMonitor: bool. Return Tuple[int, int], two ints tuple (width, height).
wxauto/uiautomation.py:2101
↓ 12 callersMethodShowWindow
Get a native handle from self or ancestors until valid and call native `ShowWindow` with cmdShow. cmdShow: int, a value in in class `
wxauto/uiautomation.py:6243
↓ 12 callersMethod_show
(self)
wxauto/elements.py:195
↓ 12 callersMethod_show
(self)
wxauto/wxauto.py:85
↓ 11 callersMethodListItemControl
(self, searchDepth=0xFFFFFFFF, searchInterval=SEARCH_INTERVAL, foundIndex=1, element=0, **searchProperties)
wxauto/uiautomation.py:6452
↓ 11 callersFunctionSetCursorPos
SetCursorPos from Win32. Set mouse cursor to point x, y. x: int. y: int. Return bool, True if succeed otherwise False.
wxauto/uiautomation.py:1802
↓ 10 callersMethodGetRuntimeId
Call IUIAutomationElement::GetRuntimeId. Return List[int], a list of int. Refer https://docs.microsoft.com/en-us/windows/desk
wxauto/uiautomation.py:5760
↓ 10 callersMethodIsTopLevel
Determine whether current control is top level.
wxauto/uiautomation.py:6370
↓ 9 callersMethodRightClick
x: int, if < 0, right click self.BoundingRectangle.right + x, if not None, ignore ratioX. y: int, if < 0, right click self.BoundingRe
wxauto/uiautomation.py:6163
↓ 9 callersFunctionRollIntoView
(win, ele, equal=False)
wxauto/utils.py:296
↓ 8 callersMethodChatWith
打开某个聊天框 Args: who ( str ): 要打开的聊天框好友名; * 最好完整匹配,不完全匹配只会选取搜索框第一个 timeout ( num, optional ): 超时时间,默认2秒
wxauto/wxauto.py:303
↓ 8 callersFunctionGetCursorPos
GetCursorPos from Win32. Get current mouse cursor positon. Return Tuple[int, int], two ints tuple (x, y).
wxauto/uiautomation.py:1791
↓ 7 callersMethodColorfullyLog
log: any type. consoleColor: int, a value in class ConsoleColor, such as ConsoleColor.DarkGreen. writeToFile: bool. p
wxauto/uiautomation.py:2982
↓ 7 callersMethodMenuControl
(self, searchDepth=0xFFFFFFFF, searchInterval=SEARCH_INTERVAL, foundIndex=1, element=0, **searchProperties)
wxauto/uiautomation.py:6455
↓ 7 callersMethodMoveCursorToInnerPos
Move cursor to control's internal position, default to center. x: int, if < 0, move to self.BoundingRectangle.right + x, if not None,
wxauto/uiautomation.py:6092
↓ 7 callersMethodSwitchToThisWindow
(self, waitTime: float = OPERATION_WAIT_TIME)
wxauto/uiautomation.py:7042
↓ 7 callersMethod_lang
(self, text)
wxauto/elements.py:420
↓ 6 callersMethodGetColorfulSearchPropertiesStr
keyColor, valueColor: str, color name in class ConsoleColor
wxauto/uiautomation.py:5364
↓ 6 callersMethodGetValuePattern
Return `ValuePattern` if it supports the pattern else None(Conditional support according to MSDN).
wxauto/uiautomation.py:6799
↓ 6 callersFunctionSetClipboardText
(text: str)
wxauto/utils.py:72
↓ 6 callersMethod_getmsgs
(self, msgitems, savepic=False, savefile=False, savevoice=False)
wxauto/elements.py:65
↓ 6 callersMethod_lang
(self, text, langtype='MAIN')
wxauto/elements.py:22
↓ 5 callersMethodCurrentChat
获取当前聊天对象名
wxauto/wxauto.py:529
↓ 5 callersMethodGetNextSiblingControl
Return `Control` subclass or None.
wxauto/uiautomation.py:5865
↓ 5 callersMethodGetPixelColorsOfRect
x: int. y: int. width: int. height: int. Return `ctypes.Array`, an iterable array of int values in argb of th
wxauto/uiautomation.py:3236
↓ 5 callersMethodMenuItemControl
(self, searchDepth=0xFFFFFFFF, searchInterval=SEARCH_INTERVAL, foundIndex=1, element=0, **searchProperties)
wxauto/uiautomation.py:6461
↓ 5 callersFunctionMoveTo
Simulate mouse move to point x, y from current cursor. x: int. y: int. moveSpeed: float, 1 normal speed, < 1 move slower, > 1 move fa
wxauto/uiautomation.py:1965
↓ 5 callersFunctionSetDpiAwareness
Call SetThreadDpiAwarenessContext(Windows 10 version 1607+) or SetProcessDpiAwareness(Windows 8.1+). You should call this function with True
wxauto/uiautomation.py:2076
↓ 5 callersMethodWheelUp
Make control have focus first, move cursor to the specified position and mouse wheel up. x: int, if < 0, move x cursor to self.Boundi
wxauto/uiautomation.py:6226
↓ 5 callersFunctiongetKeyName
(theDict, theValue)
wxauto/uiautomation.py:7807
↓ 5 callersFunctionkeybd_event
keybd_event from Win32.
wxauto/uiautomation.py:1826
↓ 4 callersFunctionClick
(rect)
wxauto/utils.py:24
↓ 4 callersFunctionControlFromHandle
Call IUIAutomation.ElementFromHandle with a native handle. handle: int, a native window handle. Return `Control` subclass or None.
wxauto/uiautomation.py:7751
↓ 4 callersMethodSetFocus
Call IUIAutomationElement::SetFocus. Refer https://docs.microsoft.com/en-us/windows/desktop/api/uiautomationclient/nf-uiautomationcli
wxauto/uiautomation.py:5771
↓ 4 callersMethodSwitchToContact
切换到通讯录页面
wxauto/wxauto.py:601
↓ 4 callersMethodWheelDown
Make control have focus first, move cursor to the specified position and mouse wheel down. x: int, if < 0, move x cursor to self.Boun
wxauto/uiautomation.py:6209
↓ 3 callersFunctionClick
Simulate mouse click at point x, y. x: int. y: int. waitTime: float.
wxauto/uiautomation.py:1848
↓ 3 callersMethodGetAllMessage
获取当前窗口中加载的所有聊天记录 Args: savepic (bool): 是否自动保存聊天图片 Returns: list: 聊天记录信息
wxauto/wxauto.py:491
↓ 3 callersFunctionGetAncestor
GetAncestor from Win32. handle: int, the handle of a native window. index: int, a value in class `GAFlag`. Return int, a native windo
wxauto/uiautomation.py:2203
↓ 3 callersFunctionGetRootControl
Get root control, the Desktop window. Return `PaneControl`.
wxauto/uiautomation.py:7681
↓ 3 callersFunctionIsKeyPressed
key: int, a value in class `Keys`. Return bool.
wxauto/uiautomation.py:2513
↓ 3 callersFunctionParseWeChatTime
时间格式转换函数 Args: time_str: 输入的时间字符串 Returns: 转换后的时间字符串
wxauto/utils.py:253
↓ 3 callersMethodRelease
(self)
wxauto/uiautomation.py:3034
↓ 3 callersMethodScrollIntoView
Call IUIAutomationTextRange::ScrollIntoView. Cause the text control to scroll until the text range is visible in the viewport.
wxauto/uiautomation.py:4720
↓ 3 callersFunctionSendKeys
Simulate typing keys on keyboard. text: str, keys to type. interval: float, seconds between keys. waitTime: float. charMode: bool
wxauto/uiautomation.py:2644
↓ 3 callersFunctionShowWindow
ShowWindow from Win32. handle: int, the handle of a native window. cmdShow: int, a value in clas `SW`. Return bool, True if succeed o
wxauto/uiautomation.py:2272
↓ 3 callersFunction_CreateInput
Create Win32 struct `INPUT` for `SendInput`. Return `INPUT`.
wxauto/uiautomation.py:2522
↓ 3 callersMethod_show
(self)
wxauto/elements.py:423
↓ 3 callersMethod_show
(self)
wxauto/wxauto.py:795
↓ 3 callersFunctionfindall
(ele, n=0, node=None)
wxauto/utils.py:97
↓ 3 callersFunctiongetModName
(theDict, theValue)
wxauto/uiautomation.py:7978
↓ 2 callersMethodCheckBoxControl
(self, searchDepth=0xFFFFFFFF, searchInterval=SEARCH_INTERVAL, foundIndex=1, element=0, **searchProperties)
wxauto/uiautomation.py:6413
↓ 2 callersMethodControl
(self, searchDepth=0xFFFFFFFF, searchInterval=SEARCH_INTERVAL, foundIndex=1, element=0, **searchProperties)
wxauto/uiautomation.py:6404
↓ 2 callersMethodDoubleClick
x: int, if < 0, right click self.BoundingRectangle.right + x, if not None, ignore ratioX. y: int, if < 0, right click self.BoundingRe
wxauto/uiautomation.py:6180
↓ 2 callersFunctionDragDrop
Simulate mouse left button drag from point x1, y1 drop to point x2, y2. x1: int. y1: int. x2: int. y2: int. moveSpeed: float,
wxauto/uiautomation.py:2005
↓ 2 callersMethodFromControl
Capture a control to Bitmap. control: `Control` or its subclass. x: int. y: int. width: int. height:
wxauto/uiautomation.py:3077
↓ 2 callersFunctionGetAllControl
(ele)
wxauto/utils.py:125
↓ 2 callersMethodGetAllMessage
获取当前窗口中加载的所有聊天记录 Args: savepic (bool): 是否自动保存聊天图片 savefile (bool): 是否自动保存聊天文件 savevoice (bool): 是
wxauto/elements.py:302
↓ 2 callersMethodGetNewMessage
获取当前窗口中加载的新聊天记录 Args: savepic (bool): 是否自动保存聊天图片 savefile (bool): 是否自动保存聊天文件 savevoice (bool): 是否自动保存语音转文
wxauto/elements.py:318
↓ 2 callersFunctionGetPathByHwnd
(hwnd)
wxauto/utils.py:31
↓ 2 callersMethodGetScrollItemPattern
Return `ScrollItemPattern` if it supports the pattern else None(Conditional support according to MSDN).
wxauto/uiautomation.py:6943
↓ 2 callersMethodGetSessionList
获取当前聊天列表中的所有聊天对象 Args: reset (bool): 是否重置SessionItemList newmessage (bool): 是否只获取有新消息的聊天对象
wxauto/wxauto.py:253
↓ 2 callersMethodGetSessionList
获取当前聊天列表中的所有聊天对象的名字 Args: reset (bool): 是否重置SessionItemList Returns: session_names (list): 对象名称列表
wxauto/wxauto.py:771
↓ 2 callersFunctionGetText
(HWND)
wxauto/utils.py:185
↓ 2 callersFunctionIsIconic
IsIconic from Win32. Determine whether a native window is minimized. handle: int, the handle of a native window. Return bool.
wxauto/uiautomation.py:2243
↓ 2 callersFunctionKeyboardInput
Create Win32 struct `KEYBDINPUT` for `SendInput`.
wxauto/uiautomation.py:2544
↓ 2 callersFunctionLogControl
Print and log control's properties. control: `Control` or its subclass. depth: int, current depth. showAllName: bool, if False, print
wxauto/uiautomation.py:7800
↓ 2 callersMethodRefind
Refind the control every searchIntervalSeconds seconds in maxSearchSeconds seconds. maxSearchSeconds: float. searchIntervalSe
wxauto/uiautomation.py:6076
↓ 2 callersMethodSelect
Call IUIAutomationTextRange::Select. Select the span of text that corresponds to this text range, and remove any previous selection.
wxauto/uiautomation.py:4734
↓ 2 callersFunctionSendMessage
SendMessage from Win32. Return int, the return value specifies the result of the message processing; it depends on the messag
wxauto/uiautomation.py:1839
↓ 2 callersMethodSendMsg
发送文本消息 Args: msg (str): 要发送的文本消息 at (str|list, optional): 要@的人,可以是一个人或多个人,格式为str或list,例如:"张三"或["张三", "李四"]
wxauto/elements.py:224
↓ 2 callersFunctionSetClipboardFiles
(paths)
wxauto/utils.py:136
↓ 2 callersFunctionSetConsoleColor
Change the text color on console window. color: int, a value in class `ConsoleColor`. Return bool, True if succeed otherwise False.
wxauto/uiautomation.py:1754
next →1–100 of 775, ranked by callers