Skip to content

Commit

Permalink
Added multiple monitors support
Browse files Browse the repository at this point in the history
  • Loading branch information
beuaaa committed May 24, 2021
1 parent c498940 commit e994edd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pywinauto_recorder/recorder.py
Original file line number Diff line number Diff line change
Expand Up @@ -876,8 +876,8 @@ def run(self):
try:
self._loop_t0 = time.time()
self.main_overlay.clear_all()
x, y = win32api.GetCursorPos()
wrapper = self.desktop.from_point(x, y)
cursor_pos = win32api.GetCursorPos()
wrapper = self.desktop.from_point(*cursor_pos)
if wrapper is None:
continue
wrapper_path = get_wrapper_path(wrapper)
Expand Down Expand Up @@ -980,7 +980,7 @@ def run(self):

self.main_overlay.refresh()
if self.mode == "Info":
self.__display_info_tip(x, y, wrapper)
self.__display_info_tip(*cursor_pos, wrapper)
else:
time.sleep(0.005) # main_overlay.clear_all() doit attendre la fin de main_overlay.refresh()
except Exception as e:
Expand Down

0 comments on commit e994edd

Please sign in to comment.