Skip to content

Commit

Permalink
Use WinDLL instead of simple raw user32
Browse files Browse the repository at this point in the history
  • Loading branch information
boppreh committed Aug 15, 2017
1 parent 6bc80dc commit 66e4613
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion keyboard/_winmouse.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@

from ._mouse_event import ButtonEvent, WheelEvent, MoveEvent, LEFT, RIGHT, MIDDLE, X, X2, UP, DOWN, DOUBLE, WHEEL, HORIZONTAL, VERTICAL

user32 = ctypes.windll.user32
#https://github.com/boppreh/mouse/issues/1
#user32 = ctypes.windll.user32
user32 = ctypes.WinDLL('user32', use_last_error = True)

class MSLLHOOKSTRUCT(Structure):
_fields_ = [("x", c_long),
Expand Down

0 comments on commit 66e4613

Please sign in to comment.