prashantgupta24 / automatic-mouse-mover

a minimalistic go library/app to keep your mac active and alive
MIT License
288 stars 33 forks source link

Error window ad infinitum #35

Closed trijste closed 1 year ago

trijste commented 1 year ago

I logged in this morning to find aam had produced three hundred error windows cascading up and down my screen.

Each error said, "unable to move the mouse," with coordinates, a time stamp, and directions to see the readme.

I have uninstalled it for the time being, but I found this utility useful for a particular problem I was having. Through Setapp, I'm trying Lungo now...

prashantgupta24 commented 1 year ago

Oof, this is the equivalent of the blue screen on windows!

Lungo sounds interesting! Although with a subscription fee I imagine it has to be!

ebeuerle commented 1 year ago

I have this issue as well on my Mac.

alican commented 1 year ago

@prashantgupta24

I have the same Problem and the origin is here: https://github.com/prashantgupta24/automatic-mouse-mover/blob/master/pkg/mousemover/mouseMover.go#L76

I think the Problem is that the mouse is moved but the underlaying library (robotgo?) didn't get the correct coordinates and returns here a false: https://github.com/prashantgupta24/automatic-mouse-mover/blob/master/pkg/mousemover/mouseMoverUtil.go#L54

Because I get the errors with a unlocked Desktop periodically when I doesnt touch the mouse but the System still doesnt go to standby.

Why do you not using the notify package? https://github.com/prashantgupta24/automatic-mouse-mover/blob/master/pkg/notify/notify.go I think showAlert from the robotgo package is not a proper method to show errors like this. Just write it to the logs.

prashantgupta24 commented 1 year ago

Fix incoming!