MCPcopy
hub / github.com/cluic/wxauto / Click

Function Click

wxauto/utils.py:24–29  ·  view source on GitHub ↗
(rect)

Source from the content-addressed store, hash-verified

22 win32api.SetCursorPos((x, y))
23
24def Click(rect):
25 x = (rect.left + rect.right) // 2
26 y = (rect.top + rect.bottom) // 2
27 set_cursor_pos(x, y)
28 win32api.mouse_event(win32con.MOUSEEVENTF_LEFTDOWN, x, y, 0, 0)
29 win32api.mouse_event(win32con.MOUSEEVENTF_LEFTUP, x, y, 0, 0)
30
31def GetPathByHwnd(hwnd):
32 try:

Callers 2

GetGroupMembersMethod · 0.70
GetGroupMembersMethod · 0.70

Calls 1

set_cursor_posFunction · 0.85

Tested by

no test coverage detected