Skip to content

A python port (not a wrapper) of interception dll

License

Notifications You must be signed in to change notification settings

zombob/interception_py

 
 

Repository files navigation

interception_py

This is a port (not a wrapper) of interception dll to python, it communicates directly with interception's driver

安装驱动

Interception.zip

why not using the wrapper?

  • it's very slow and some strokes are lost
  • fast strokes made python crash (some heap allocation errors)

To make it run you should install the driver from c-interception

example

from interception import  *

if __name__ == "__main__":
    c = interception()
    c.set_filter(interception.is_keyboard,interception_filter_key_state.INTERCEPTION_FILTER_KEY_UP.value)
    while True:
        device = c.wait()
        stroke = c.receive(device)
        if type(stroke) is key_stroke:
            print(stroke.code)
        c.send(device,stroke)

About

A python port (not a wrapper) of interception dll

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%