Dark Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 8a93a4e

Browse files
authored
Merge pull request #124 from sqxccdy/pywinhook
update depend "pyHook" to New "pywinHook"
2 parents 153c1d3 + 4c6c640 commit 8a93a4e

File tree

3 files changed

+5
-5
lines changed
  • pykeyboard
    • windows.py
  • pymouse
    • windows.py
  • setup.py

3 files changed

+5
-5
lines changed

pykeyboard/windows.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ class PyKeyboardEvent(PyKeyboardEventMeta):
229229
def __init__(self, diagnostic=False):
230230
self.diagnostic = diagnostic
231231

232-
import pyHook
232+
import pyWinhook as pyHook
233233

234234
PyKeyboardEventMeta.__init__(self)
235235
self.hm = pyHook.HookManager()

pymouse/windows.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def screen_size(self):
9090

9191
class PyMouseEvent(PyMouseEventMeta):
9292
def __init__(self, capture=False, capture_move=False):
93-
import pyHook
93+
import pyWinhook as pyHook
9494

9595
PyMouseEventMeta.__init__(self, capture=capture, capture_move=capture_move)
9696
self.hm = pyHook.HookManager()
@@ -107,7 +107,7 @@ def stop(self):
107107
self.state = False
108108

109109
def _action(self, event):
110-
import pyHook
110+
import pyWinhook as pyHook
111111
x, y = event.Position
112112

113113
if event.Message == pyHook.HookConstants.WM_MOUSEMOVE:

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def long_description():
1313
return(readme_text)
1414

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

0 commit comments

Comments
(0)