-
Notifications
You must be signed in to change notification settings - Fork 39
Open
Description
Hi, I am getting errors as following on Windows when calling screen_size():
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "pymouse\windows.py", line 49, in screen_size
def screen_size(self):
NameError: global name 'GetSystemMetrics' is not definedIt was fixed by replacing the screen_size() inside window.py with the following:
def screen_size(self):
width = windll.user32.GetSystemMetrics(0)
height = windll.user32.GetSystemMetrics(1)
return width, height
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels