(rect)
| 22 | win32api.SetCursorPos((x, y)) |
| 23 | |
| 24 | def 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 | |
| 31 | def GetPathByHwnd(hwnd): |
| 32 | try: |
no test coverage detected