Skip to content

Parameters doesn't seem to work #30

Description

@ldgregory

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions