-
Notifications
You must be signed in to change notification settings - Fork 67
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
Cannot open console input buffer for writing randomly appears during the ahk works #226
Comments
Can you provide the full stack trace you get in the error? |
Yeah. Sure Цена выставлена Нашел по прошлым кордам 55 Сообщение в тг отправлено
Process finished with exit code -1 |
Hmm. This is very strange. I can't reproduce this issue. Can you make sure you're using the latest version of This may be related to a recently fixed bug in Python with windows fds and short-lived processes. Another way you may avoid this is by not using while autohotkey.get_mouse_position(coord_mode='Screen') != (x, y):
- autohotkey.run_script(move)
+ autohotkey.mouse_move(x, y, coord_mode='Screen') Same goes for most of the other places where |
I updated python. Use 1.3.0 version of ahk. And now i get this exception Exception in thread Thread-1209 (_readerthread): |
Also i tried to use ahk.mouse_move() function but for some reason only ahk scripts works with Lineage2M |
Hmm. There's definitely something wrong here in that last stack trace, but I'm doubtful it actually has anything to do with this library in particular, since no I can only speculate as to what the problem may be, but I would double check how you're engaging with threading/multiprocessing to make sure your program is utilizing concurrency in a safe manner. It could also be an environment issue, such as if your machine has network-mounted storage, if you're using an IDE/debugger to run your code, or it could be something else entirely. I'm not sure, really. Unfortunately, I'm not able to reproduce any of these issues, so I'm not sure how I can help further. |
Can this issue appear because i have thread with GUI and another one for script to prevent GIL. And script opens and closes ahk threads. And maybe problem appears because of ahk thread starts from not main thread? |
Closing this due to inactivity. I also don't think this issue is directly related to any issue with the library. |
Discussed in #225
Originally posted by MIFIKUS August 14, 2023
Hello!
I made an ahk script for Lineage 2M. And during the script works i get Cannot open console input buffer for writing.
It apperars absolutely randomly.
My code looks like this.
I tried to google this error but didn't find anything.
To set a MaxThreads and Exit from script in the end didn't help too
The text was updated successfully, but these errors were encountered: