-
Notifications
You must be signed in to change notification settings - Fork 482
/
API changes.txt
70 lines (69 loc) · 4.83 KB
/
API changes.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
2.0.13
add GetClipboardFormats, GetClipboardHtml, SetClipboardHtml, GetClipboardBitmap, SetClipboardBitmap
add Clear, Copy, Paste, Rotate, RotateFlip for Bitmap
change Bitmap's FromHandle, FromControl and FromFile to static function
2.0.12
call SetProcessDpiAwareness when import uiautomation
remove SetDpiAwareness, add SetThreadDpiAwarenessContext, SetProcessDpiAwareness
rename values in class ProcessDpiAwareness and DpiAwarenessContext
add GetPhysicalCursorPos
2.0.11
fix Control._CompareFunction
support DPI scaling
add SetDpiAwareness
2.0.10
modify LogControl, add parameter showPid
2.0.9
revert NoReturn
2.0.8
add GetVirtualScreenSize, UIAutomationInitializerInThread
2.0.7
update dll
2.0.6
fix ComboBoxControl.Select
2.0.5
add MiddlePressMouse, MiddleReleaseMouse, MiddleDragDrop
2.0.4
add GetMonitorsRect
2.0.3
rename searchWaitTime to searchInterval in Control.__init__
2.0.2
Control.WheelDown(self, wheelTimes: int = 1, interval: float = 0.05, waitTime: float = OPERATION_WAIT_TIME) -> None
to WheelDown(self, x: int = None, y: int = None, ratioX: float = 0.5, ratioY: float = 0.5, wheelTimes: int = 1, interval: float = 0.05, waitTime: float = OPERATION_WAIT_TIME) -> None
Control.WheelUp(self, wheelTimes: int = 1, interval: float = 0.05, waitTime: float = OPERATION_WAIT_TIME) -> None
to WheelUp(self, x: int = None, y: int = None, ratioX: float = 0.5, ratioY: float = 0.5, wheelTimes: int = 1, interval: float = 0.05, waitTime: float = OPERATION_WAIT_TIME) -> None
Control.SendKeys(text: str, interval: float = 0.01, waitTime: float = OPERATION_WAIT_TIME, debug: bool = False) -> None
to SendKeys(text: str, interval: float = 0.01, waitTime: float = OPERATION_WAIT_TIME, charMode: bool = True, debug: bool = False) -> None
2.0.0
Only supports Python3.
Depends on modules comtypes and typing.
Removed class Win32API. Methods in Win32API were moved to globle scope.
KeyDown, KeyUp were removed, use PressKey, ReleaseKey.
Methods related to process were removed. Use psutil instead.
Controls don't inherit patterns. Use Control.GetPattern(patterId) or Control.GetXxxPattern() to get a pattern and use pattern properties or methods.
Because:
1 two patterns may have a same method name and a control may support the two patterns at the same time.
2 LegacyIAccessiblePattern has many properties which are same to Control's properties.
If GetPattern or GetXxxPattern returns None, it doesn't support the pattern.
Methods like IsXxxPatternAvailable were removed.
Value names in class SWP changed.
Value names in class MB changed.
Value names in class ModifierKey changed.
Class ShowWindow was renamed to SW.
Removed 'Func' in variable names.
Removed 'Dict' in variable names.
Control.Handle to Control.NativeWindowHandle
Control.BoundingRectangle doesn't return tuple, it returns class Rect, it has 4 properties left, top, right, bottom, 5 methods width()->int, height()->int, xcenter()->int, ycenter()->int and contains(x:int,y:int)->bool.
Control.MoveCursor to Control.MoveCursorToInnerPos
Control.Click(self, ratioX=0.5, ratioY=0.5, simulateMove=True, waitTime=OPERATION_WAIT_TIME): to Click(self, x: int = None, y: int = None, ratioX: float = 0.5, ratioY: float = 0.5, simulateMove: bool = True, waitTime: float = OPERATION_WAIT_TIME) -> None:
Control.RightClick(self, ratioX=0.5, ratioY=0.5, simulateMove=True, waitTime=OPERATION_WAIT_TIME): to RightClick(self, x: int = None, y: int = None, ratioX: float = 0.5, ratioY: float = 0.5, simulateMove: bool = True, waitTime: float = OPERATION_WAIT_TIME) -> None:
Control.MiddleClick(self, ratioX=0.5, ratioY=0.5, simulateMove=True, waitTime=OPERATION_WAIT_TIME): to MiddleClick(self, x: int = None, y: int = None, ratioX: float = 0.5, ratioY: float = 0.5, simulateMove: bool = True, waitTime: float = OPERATION_WAIT_TIME) -> None:
Control.DoubleClick(self, ratioX=0.5, ratioY=0.5, simulateMove=True, waitTime=OPERATION_WAIT_TIME): to DoubleClick(self, x: int = None, y: int = None, ratioX: float = 0.5, ratioY: float = 0.5, simulateMove: bool = True, waitTime: float = OPERATION_WAIT_TIME) -> None:
Control.WheelDown(self, wheelTimes=1, waitTime=OPERATION_WAIT_TIME) to WheelDown(self, wheelTimes: int = 1, interval: float = 0.05, waitTime: float = OPERATION_WAIT_TIME) -> None:
Control.WheelUp(self, wheelTimes=1, waitTime=OPERATION_WAIT_TIME) to WheelUp(self, wheelTimes: int = 1, interval: float = 0.05, waitTime: float = OPERATION_WAIT_TIME) -> None:
Control.GetTopWindow to Control.GetTopLevelControl
Logger.ColorfulWrite to Logger.ColorfullyWrite
Logger.ColorfulWriteLine to Logger.ColorfullyWriteLine
Logger.ColorfulLog to Logger.ColorfullyLog
SetGlobalSearchTimeOut to SetGlobalSearchTimeout
RunWithHotKey to RunByHotKey