Comments (5)
from autohotpy.
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.
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.
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.
hello
Anyway to bypass the above problem just trying to run your examples?
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)
- WindowsError: exception: access violation reading 0x00000007 HOT 1
- moveMouseToPosition() doesn't move mouse to correct position HOT 9
- simulate keystrokes without macros
- AttributeError: 'Bot' object has no attribute 'autohotpy' HOT 1
- Point is not defined in AutoHotPy.py
- Unable to create threads
- mouse click that called from function HOT 3
- Mouse speed is not real- it is very slow.
- WinError 193
- WindowsError: [Error 126] The specified module could not be found. HOT 5
- Recording a macro to a file does not work well. HOT 4
- Please, help. <class 'OverflowError'>: int too long to convert HOT 3
- Inactive window
- Activate Macro Without Key HOT 7
- Python 3: Queue import error HOT 3
- Activate Macro Without Key 2 HOT 2
- Loss of control over a computer when a macro is playing HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from autohotpy.