GithubHelp home page GithubHelp logo

Comments (5)

dc740 avatar dc740 commented on July 17, 2024

from autohotpy.

byquip avatar byquip commented on July 17, 2024

Usually my code working well as python script, but when I decide to pack it to *.exe file by pyinstaller i got problems.

When i try launch *.exe i got error here in File "AutoHotPy.py" :

# Setup filters.
        self.interception.interception_set_filter(self.context, self.interception.interception_is_keyboard, InterceptionFilterKeyState.INTERCEPTION_FILTER_KEY_ALL)

I got this error:

File "InterceptionWrapper.py", line 210, in interception_set_filter
    InterceptionFilter ITERCEPTION_API interception_get_filter(InterceptionContext context, InterceptionDevice device);
ArgumentError: argument 1: <type 'exceptions.OverflowError'>: long int too long to convert

And if I change type of self.context to ctypes.c_int(self.context) or just int(self.context) I got the same error as GiannisKyr

File "main.py", line 317, in start_auto
  File "AutoHotPy.py", line 555, in start
    self.interception.interception_set_filter(self.context, self.interception.interception_is_mouse, InterceptionFilterMouseState.INTERCEPTION_FILTER_MOUSE_ALL);
  File "lib\InterceptionWrapper.py", line 210, in interception_set_filter
    InterceptionFilter ITERCEPTION_API interception_get_filter(InterceptionContext context, InterceptionDevice device);
WindowsError: exception: access violation reading 0x00000000A8088680

And as I said before, I does not have any errors if use just script.
Any ideas?

from autohotpy.

byquip avatar byquip commented on July 17, 2024

Resolve last errors by using from FedyuninV/AutoHotPy in file InterceptionWrapper.py lines
And of course new problem: My mouse does not move after program launch by my *exe file.

from autohotpy.

byquip avatar byquip commented on July 17, 2024

Resolve last errors by using from FedyuninV/AutoHotPy in file InterceptionWrapper.py lines
And of course new problem: My mouse does not move after program launch by my *exe file.

Resolved. I used wrond dll.

from autohotpy.

Apemsking avatar Apemsking commented on July 17, 2024

hello
Anyway to bypass the above problem just trying to run your examples?

http://prntscr.com/pdc5g6

Try changing line 188 in your InterceptionWrapper.py file:
funct_type = ctypes.WINFUNCTYPE(ctypes.c_int,InterceptionDevice) ->
funct_type = ctypes.CFUNCTYPE(ctypes.c_int,InterceptionDevice)

from autohotpy.

Related Issues (18)

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.