Code Monkey home page Code Monkey logo

interception_py's People

Contributors

cobrce avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

interception_py's Issues

getkeystate blocks mouse input

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?

`Can't create device` on windows

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

TypeError: unsupported operand type(s) for +: 'type' and 'int'

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?

Fix `c_recv_buffer` using `c_byte`

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.

Getting unlimited amount of keystrokes

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.

an error

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.