Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parameters doesn't seem to work #30

Open
ldgregory opened this issue Jul 26, 2020 · 0 comments
Open

Parameters doesn't seem to work #30

ldgregory opened this issue Jul 26, 2020 · 0 comments

Comments

@ldgregory
Copy link

Using this example: https://github.com/JeffHoogland/pyxhook/blob/master/example_with_parameters.py

It produces the error:
Traceback (most recent call last):
File "pykeylogger3.py", line 22, in
hookman = pyxhook.HookManager(parameters=True)
TypeError: init() got an unexpected keyword argument 'parameters'

I'm really not great at OOP, but looking at https://github.com/JeffHoogland/pyxhook/blob/master/pyxhook.py ling 65 for the init of the HookManager class has

def init(self,parameters=False):

Which hookman = pyxhook.HookManager(parameters=True) should override (sorry if that is not the correct term) with the line hookman.KeyDownParameters = parameters (provided parameters is a properly formatted dict).

Starting on line 94 of pyxhook.py is looks like the code is there to process the parameters but this is where I start getting lost. Sorry. Wish I could help by point out what's wrong.

pykeylogger3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant