Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

access violation writing 0x000000007 #11

Open
GiannisKyr opened this issue Oct 1, 2019 · 5 comments
Open

access violation writing 0x000000007 #11

GiannisKyr opened this issue Oct 1, 2019 · 5 comments

Comments

@GiannisKyr
Copy link

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

http://prntscr.com/pdc5g6

@dc740
Copy link
Owner

dc740 commented Oct 1, 2019 via email

@byquip
Copy link

byquip commented May 21, 2020

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?

@byquip
Copy link

byquip commented May 22, 2020

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.

@byquip
Copy link

byquip commented Jun 5, 2020

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.

@Apemsking
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants