pyxhook icon indicating copy to clipboard operation
pyxhook copied to clipboard

Parameters doesn't seem to work

Open ldgregory opened this issue 4 years ago • 0 comments

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

ldgregory avatar Jul 26 '20 16:07 ldgregory