windows-mcp 0.5.7__py3-none-any.whl → 0.5.8__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- windows_mcp/__main__.py +314 -312
- windows_mcp/analytics.py +175 -171
- windows_mcp/desktop/config.py +20 -20
- windows_mcp/desktop/service.py +457 -457
- windows_mcp/desktop/views.py +57 -57
- windows_mcp/tree/config.py +50 -50
- windows_mcp/tree/service.py +600 -466
- windows_mcp/tree/utils.py +21 -21
- windows_mcp/tree/views.py +115 -115
- windows_mcp/uia/__init__.py +4 -0
- windows_mcp/uia/controls.py +4781 -0
- windows_mcp/uia/core.py +3269 -0
- windows_mcp/uia/enums.py +1963 -0
- windows_mcp/uia/events.py +83 -0
- windows_mcp/uia/patterns.py +2106 -0
- windows_mcp/watchdog/__init__.py +1 -0
- windows_mcp/watchdog/event_handlers.py +51 -0
- windows_mcp/watchdog/service.py +188 -0
- {windows_mcp-0.5.7.dist-info → windows_mcp-0.5.8.dist-info}/METADATA +4 -4
- windows_mcp-0.5.8.dist-info/RECORD +26 -0
- windows_mcp-0.5.7.dist-info/RECORD +0 -17
- {windows_mcp-0.5.7.dist-info → windows_mcp-0.5.8.dist-info}/WHEEL +0 -0
- {windows_mcp-0.5.7.dist-info → windows_mcp-0.5.8.dist-info}/entry_points.txt +0 -0
- {windows_mcp-0.5.7.dist-info → windows_mcp-0.5.8.dist-info}/licenses/LICENSE.md +0 -0
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
|
|
2
|
+
class EventId:
|
|
3
|
+
"""
|
|
4
|
+
EventId from IUIAutomation.
|
|
5
|
+
Refer https://docs.microsoft.com/en-us/windows/win32/winauto/uiauto-event-ids
|
|
6
|
+
"""
|
|
7
|
+
UIA_ToolTipOpenedEventId = 20000
|
|
8
|
+
UIA_ToolTipClosedEventId = 20001
|
|
9
|
+
UIA_StructureChangedEventId = 20002
|
|
10
|
+
UIA_MenuOpenedEventId = 20003
|
|
11
|
+
UIA_AutomationPropertyChangedEventId = 20004
|
|
12
|
+
UIA_AutomationFocusChangedEventId = 20005
|
|
13
|
+
UIA_AsyncContentLoadedEventId = 20006
|
|
14
|
+
UIA_MenuClosedEventId = 20007
|
|
15
|
+
UIA_LayoutInvalidatedEventId = 20008
|
|
16
|
+
UIA_Invoke_InvokedEventId = 20009
|
|
17
|
+
UIA_SelectionItem_ElementAddedToSelectionEventId = 20010
|
|
18
|
+
UIA_SelectionItem_ElementRemovedFromSelectionEventId = 20011
|
|
19
|
+
UIA_SelectionItem_ElementSelectedEventId = 20012
|
|
20
|
+
UIA_Selection_InvalidatedEventId = 20013
|
|
21
|
+
UIA_Text_TextSelectionChangedEventId = 20014
|
|
22
|
+
UIA_Text_TextChangedEventId = 20015
|
|
23
|
+
UIA_Window_WindowOpenedEventId = 20016
|
|
24
|
+
UIA_Window_WindowClosedEventId = 20017
|
|
25
|
+
UIA_MenuModeStartEventId = 20018
|
|
26
|
+
UIA_MenuModeEndEventId = 20019
|
|
27
|
+
UIA_InputReachedTargetEventId = 20020
|
|
28
|
+
UIA_InputReachedOtherElementEventId = 20021
|
|
29
|
+
UIA_InputDiscardedEventId = 20022
|
|
30
|
+
UIA_SystemAlertEventId = 20023
|
|
31
|
+
UIA_LiveRegionChangedEventId = 20024
|
|
32
|
+
UIA_HostedFragmentRootsInvalidatedEventId = 20025
|
|
33
|
+
UIA_Drag_DragStartEventId = 20026
|
|
34
|
+
UIA_Drag_DragCancelEventId = 20027
|
|
35
|
+
UIA_Drag_DragCompleteEventId = 20028
|
|
36
|
+
UIA_DropTarget_DragEnterEventId = 20029
|
|
37
|
+
UIA_DropTarget_DragLeaveEventId = 20030
|
|
38
|
+
UIA_DropTarget_DroppedEventId = 20031
|
|
39
|
+
UIA_TextEdit_TextChangedEventId = 20032
|
|
40
|
+
UIA_TextEdit_ConversionTargetChangedEventId = 20033
|
|
41
|
+
UIA_ChangesEventId = 20034
|
|
42
|
+
UIA_NotificationEventId = 20035
|
|
43
|
+
UIA_ActiveTextPositionChangedEventId = 20036
|
|
44
|
+
|
|
45
|
+
EventIdNames = {
|
|
46
|
+
EventId.UIA_ToolTipOpenedEventId: 'UIA_ToolTipOpenedEventId',
|
|
47
|
+
EventId.UIA_ToolTipClosedEventId: 'UIA_ToolTipClosedEventId',
|
|
48
|
+
EventId.UIA_StructureChangedEventId: 'UIA_StructureChangedEventId',
|
|
49
|
+
EventId.UIA_MenuOpenedEventId: 'UIA_MenuOpenedEventId',
|
|
50
|
+
EventId.UIA_AutomationPropertyChangedEventId: 'UIA_AutomationPropertyChangedEventId',
|
|
51
|
+
EventId.UIA_AutomationFocusChangedEventId: 'UIA_AutomationFocusChangedEventId',
|
|
52
|
+
EventId.UIA_AsyncContentLoadedEventId: 'UIA_AsyncContentLoadedEventId',
|
|
53
|
+
EventId.UIA_MenuClosedEventId: 'UIA_MenuClosedEventId',
|
|
54
|
+
EventId.UIA_LayoutInvalidatedEventId: 'UIA_LayoutInvalidatedEventId',
|
|
55
|
+
EventId.UIA_Invoke_InvokedEventId: 'UIA_Invoke_InvokedEventId',
|
|
56
|
+
EventId.UIA_SelectionItem_ElementAddedToSelectionEventId: 'UIA_SelectionItem_ElementAddedToSelectionEventId',
|
|
57
|
+
EventId.UIA_SelectionItem_ElementRemovedFromSelectionEventId: 'UIA_SelectionItem_ElementRemovedFromSelectionEventId',
|
|
58
|
+
EventId.UIA_SelectionItem_ElementSelectedEventId: 'UIA_SelectionItem_ElementSelectedEventId',
|
|
59
|
+
EventId.UIA_Selection_InvalidatedEventId: 'UIA_Selection_InvalidatedEventId',
|
|
60
|
+
EventId.UIA_Text_TextSelectionChangedEventId: 'UIA_Text_TextSelectionChangedEventId',
|
|
61
|
+
EventId.UIA_Text_TextChangedEventId: 'UIA_Text_TextChangedEventId',
|
|
62
|
+
EventId.UIA_Window_WindowOpenedEventId: 'UIA_Window_WindowOpenedEventId',
|
|
63
|
+
EventId.UIA_Window_WindowClosedEventId: 'UIA_Window_WindowClosedEventId',
|
|
64
|
+
EventId.UIA_MenuModeStartEventId: 'UIA_MenuModeStartEventId',
|
|
65
|
+
EventId.UIA_MenuModeEndEventId: 'UIA_MenuModeEndEventId',
|
|
66
|
+
EventId.UIA_InputReachedTargetEventId: 'UIA_InputReachedTargetEventId',
|
|
67
|
+
EventId.UIA_InputReachedOtherElementEventId: 'UIA_InputReachedOtherElementEventId',
|
|
68
|
+
EventId.UIA_InputDiscardedEventId: 'UIA_InputDiscardedEventId',
|
|
69
|
+
EventId.UIA_SystemAlertEventId: 'UIA_SystemAlertEventId',
|
|
70
|
+
EventId.UIA_LiveRegionChangedEventId: 'UIA_LiveRegionChangedEventId',
|
|
71
|
+
EventId.UIA_HostedFragmentRootsInvalidatedEventId: 'UIA_HostedFragmentRootsInvalidatedEventId',
|
|
72
|
+
EventId.UIA_Drag_DragStartEventId: 'UIA_Drag_DragStartEventId',
|
|
73
|
+
EventId.UIA_Drag_DragCancelEventId: 'UIA_Drag_DragCancelEventId',
|
|
74
|
+
EventId.UIA_Drag_DragCompleteEventId: 'UIA_Drag_DragCompleteEventId',
|
|
75
|
+
EventId.UIA_DropTarget_DragEnterEventId: 'UIA_DropTarget_DragEnterEventId',
|
|
76
|
+
EventId.UIA_DropTarget_DragLeaveEventId: 'UIA_DropTarget_DragLeaveEventId',
|
|
77
|
+
EventId.UIA_DropTarget_DroppedEventId: 'UIA_DropTarget_DroppedEventId',
|
|
78
|
+
EventId.UIA_TextEdit_TextChangedEventId: 'UIA_TextEdit_TextChangedEventId',
|
|
79
|
+
EventId.UIA_TextEdit_ConversionTargetChangedEventId: 'UIA_TextEdit_ConversionTargetChangedEventId',
|
|
80
|
+
EventId.UIA_ChangesEventId: 'UIA_ChangesEventId',
|
|
81
|
+
EventId.UIA_NotificationEventId: 'UIA_NotificationEventId',
|
|
82
|
+
EventId.UIA_ActiveTextPositionChangedEventId: 'UIA_ActiveTextPositionChangedEventId',
|
|
83
|
+
}
|