The "while running:" loop was using 100% CPU when the autoclicker was paused. Adding a small sleep has fixed the issue and it now uses nearly no cpu while paused.
I also added a window title, as previously the window was titled "C:/users/name/python".. etc.
@isaychris could you merge this for others' benefit please, as this is the first result on google for "python autoclicker", and although it's a useful tool it's a serious limitation to have it use 100% CPU.
The "while running:" loop was using 100% CPU when the autoclicker was paused. Adding a small sleep has fixed the issue and it now uses nearly no cpu while paused.
I also added a window title, as previously the window was titled "C:/users/name/python".. etc.