❗Before opening issue: ImportError: No module named mss...
Closed this issue · 0 comments
With the next release of the bot (#25). Pyautogui will be removed as a dependency and mss will be added causing the bot to fail on runtime if you don't have it installed. To fix this please run Install_Requirements.bat
to refresh the dependencies needed for the bot if you are getting ImportErrors
.
Why?
Earlier in development I used pyautogui for sending keys and clicking with the mouse. But I had issues with the clicks and keys not being registered in game. See this for explanation.
So I switched over to the mouse & keyboard lib to handle this problem. The only thing that I really needed pyautogui for now was locating stuff on screen. I thought that was quite unneccesary to have a navigation lib just for locating buttons on screen. So with PR the next release (#25) I have built that into the bot and replaced the pyautogui functions that were used..