cobrce / interception_py Goto Github PK
View Code? Open in Web Editor NEWA python port (not a wrapper) of interception dll
License: MIT License
A python port (not a wrapper) of interception dll
License: MIT License
import newmodule as module
handle = module.macro()
while 1:
if handle.getkeystate(86):
handle.sleep(1)
handle.lmb_down()
handle.sleep(100)
handle.lmb_up()
handle.sleep(1000)
this code allows me to click when v is pressed?
no, it only works if i put a 5 second sleep after the getkeystate statement
the getkeystate blocks the input of mouse
so you know, i wrapped interception in a module, clicks work fine without the getkeystate
any workaround or fix?
Traceback (most recent call last):
File "test.py", line 4, in <module>
c = interception()
File "E:\temp\program\interception.py", line 28, in __init__
raise e
File "E:\temp\program\interception.py", line 22, in __init__
interception.is_keyboard(i))
File "E:\temp\program\interception.py", line 114, in __init__
raise Exception("Can't create device")
Exception: Can't create device
I'm pretty new to python and using this port so this may be an easy fix, but I can't figure it out.
File "C:\Users\xxxxx\Desktop\xxxx\xxxx\xxx\interception.py", line 56, in send
if not interception.is_invalid(device):
File "C:\Users\xxxxx\Desktop\xxxx\xxxx\xxx\interception.py", line 69, in is_invalid
return device+1 <= 0 or device+1 > (MAX_KEYBOARD + MAX_MOUSE)
TypeError: unsupported operand type(s) for +: 'type' and 'int'
Any idea?
How to trigger a key press, for example f1
In the device class, you initialize the receive buffer as 12 or 24 signed bytes c_byte
depending on the device type.
Later in the device_io_result
class, that data is passed and converted to bytes
, which causes an error
bytes must be in range(0, 256).
This happened because signed bytes are used for the recv buffer, please consider to use c_ubyte
to fix this issue.
When capturing strokes, if you are using a debugger for example, you will not be able to use your devices until you restart your computer.
please remove
When I run an example, I can't do anything because I'm getting keystrokes non-stop. Do you know what could cause this?
I can use the interception lib in C++ without a problem.
It seems like some keys are lost
When I remote, It doesnt know my keyboard is pressed, so program doesnt start
My thought is fix by manual searching device but I don't know how.
Hi, Thank you very much for the code. when i run the example i get an error. I'm using python 2.7. I installed interception exe. I would be glad if you help.
Traceback (most recent call last):
File "C:\Documents and Settings\Administrator\Desktop\interception_py-master\_example_.py", line 1, in <module>
from interception import *
File "C:\Documents and Settings\Administrator\Desktop\interception_py-master\interception.py", line 3, in <module>
from consts import *
File "C:\Documents and Settings\Administrator\Desktop\interception_py-master\consts.py", line 1, in <module>
from enum import Enum
ImportError: No module named enum
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.