-
Notifications
You must be signed in to change notification settings - Fork 5
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
tootlip calibrator error #2
Comments
Will def. look into this! I knew of an issue with tooltip calibration I wanted to touch up, maybe I can fix this too~ (possibly issue with PyHook?): |
I'm sure I installed pyhook. And the first step, to set the scan area, was works well too. If PyHook has an issue, the first step should warn error too, I guess. Maybe you can add a debug mode, |
Hm, you're right.. scanarea is using the mouse first, and tooltip calibration uses the same code, basically.. That's the problem, though is.. I don't know if it's something my code is doing or if it's an underlying issue with one of the libraries i'm using.. I assumed maybe it was an issue with PyHook's windows implementation (?) but I'm not really sure.. It does work on my windows laptop, albeit a little laggy compared to osx, but it's my only example, so I appreciate your feedback! |
I pulled the new code, the warning belows: F:\Coding\bobber_bot>py thresh.py I update to win10 1903, trying to switch wow language in enUS or zhCN, reinstall python packs, and I found this: F:\Coding\bobber_bot\install_files>python -m pip install -U pyHook F:\Coding\bobber_bot\install_files>python -m pip install --upgrade --force-reinstall PyUserInput pyHook installed, but PyUserInput didn't find the required version of pyhook, I guess PyUserInput updated? Or because win10 1903. When i first time installing the dep packs I'm sure it succeeded. |
Right now I definitely broke the bot (then committed my changes to Master)..
I definitely think you're on the right track with PyHook.. I remember having an issue with PyHook on my windows laptop, which is why I included the wheel files that worked for me -- but I didn't keep close enough notes on how I resolved it. =x |
Is there a stable commit I can run while this is being worked on? |
Yes, my apologies y'all -- I'm going to revert my last changes that broke the bot entirely, as I was just adding delay_start() and "minor improvements". Unfortunately I didn't test this properly before committing to master. I will do better. ^^b #[REVERT]: |
Perhaps this has the same reason; I couldn't select the right area of the tooltip using the popup window. In the end, I had to alt-tab to e.g. webbrowser and select the right area there (or at least, select the right area so that the calibration would go to the right place). Seems something off with the calibration (perhaps picking the wrong resolution)? My WoW is in a different resolution wrt. the standard display) that might cause it. |
So.. I'm back playing WoW again, and on my new iMac none of this works xD I think I'm having the same problem as @HiddevH where the code doesn't scale properly to my resolution.. I'll be taking another crack at the calibration |
Welcome back :) Let me know if you have any help, I'm still playing but haven't coded in a while. We could enhance the experience, create a GUI instead of using a script to start |
I've switched the calibration from using a screenshot that you click&drag across, to just clicking on the actual screen at the top-left and bottom right of the rectangle you want to grab.. This has fixed the problem for me -- let me know if it fixes your issue @HiddevH ! I do think a GUI would be cool~ I don't think this will help you kaikaiiiiiii however, sorry. |
[OPTIONAL CONFIG]: health | Would you like to skip?: n
[Calibrating health: Click at the top-left of the area, && drag to lower-right and release click.]
Woomy!: (517, 97)
Woomy!: (697, 107)
Pause. Drawing area with mouse:
[health Calibration Good? (y/n)]: y
[Calibration config found for scanarea | Use this?]:
[Use calibration from config for bobber?]:
[No config set for tooltip | Press [enter] to configure]: 3sec
Click at the top-left of the tooltip, && drag to lower-right and release.]
TypeError: MouseSwitch() missing 8 required positional arguments: 'msg', 'x', 'y', 'data', 'flags', 'time', 'hwnd', and 'window_name'
The mouse was very lagging when the tooltip calib starts. I've trying to move cursor, but just I moved cursor a pixel far, the error message pops out.
Seems the script doesn't monitoring left mouse click, just triggered by mouse movement event.
System: Windows 10 1809 64bit
Mouse: Logitech G502
The text was updated successfully, but these errors were encountered: