Skip to content
This repository was archived by the owner on May 9, 2023. It is now read-only.
/ interception_py Public archive

A python port (not a wrapper) of interception dll

License

Notifications You must be signed in to change notification settings

cobrce/interception_py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

May 9, 2023
2e9e66b · May 9, 2023

History

9 Commits
Jan 28, 2019
Jan 28, 2019
May 9, 2023
Jan 28, 2019
Jan 28, 2019
Jan 28, 2019
Apr 28, 2021
Jan 28, 2019
Aug 18, 2020
Jan 28, 2019

Repository files navigation

This repository is unmaintained since 2019, check pyintercept by Kenny Hommel for an up to date version

interception_py

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

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages