Skip to content

Commit

Permalink
Merge pull request #124 from sqxccdy/pywinhook
Browse files Browse the repository at this point in the history
update depend “pyHook" to  New "pywinHook"
  • Loading branch information
SavinaRoja committed Apr 19, 2021
2 parents 153c1d3 + 4c6c640 commit 8a93a4e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pykeyboard/windows.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ class PyKeyboardEvent(PyKeyboardEventMeta):
def __init__(self, diagnostic=False):
self.diagnostic = diagnostic

import pyHook
import pyWinhook as pyHook

PyKeyboardEventMeta.__init__(self)
self.hm = pyHook.HookManager()
Expand Down
4 changes: 2 additions & 2 deletions pymouse/windows.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def screen_size(self):

class PyMouseEvent(PyMouseEventMeta):
def __init__(self, capture=False, capture_move=False):
import pyHook
import pyWinhook as pyHook

PyMouseEventMeta.__init__(self, capture=capture, capture_move=capture_move)
self.hm = pyHook.HookManager()
Expand All @@ -107,7 +107,7 @@ def stop(self):
self.state = False

def _action(self, event):
import pyHook
import pyWinhook as pyHook
x, y = event.Position

if event.Message == pyHook.HookConstants.WM_MOUSEMOVE:
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def long_description():
return(readme_text)

setup(name='PyUserInput',
version='0.1.9',
version='0.1.10',
description='A simple, cross-platform module for mouse and keyboard control',
long_description=long_description(),
author='Paul Barton',
Expand All @@ -37,6 +37,6 @@ def dependency_check(dep_list):
if sys.platform == 'darwin': # Mac
dependency_check(['Quartz', 'AppKit'])
elif sys.platform == 'win32': # Windows
dependency_check(['win32api', 'win32con', 'pythoncom', 'pyHook'])
dependency_check(['win32api', 'win32con', 'pythoncom', 'pyWinhook'])
else: # X11 (LInux)
dependency_check(['Xlib'])

0 comments on commit 8a93a4e

Please sign in to comment.