prashantgupta24 / automatic-mouse-mover

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

Move mouse regadless of activity #31

Open bonarmada opened 2 years ago

bonarmada commented 2 years ago

Could there be an option to move mouse after x minutes regardless if there is activity or none.

The cursor never moved causing the machine to sleep. My theory is that the app detects activity on the BG probably time tracker apps.

Could this be a possible feature?

prashantgupta24 commented 2 years ago

Hi @bonarmada , the mouse mover app is based on this: https://github.com/prashantgupta24/activity-tracker.

The activity tracker detects activity based on background tasks, such as mouse movements, screen changes, etc. The reason I did not want the mouse mover to move regardless of activity was because if you are doing some task that involves moving the mouse cursor delicately, the movement of the cursor through the app will disturb it. Hence the idea is to only make it move if there's no activity from the user's side.

prashantgupta24 commented 2 years ago

In your case, perhaps you can quit the app and reopen it, that might fix the cursor not moving issue.

shanep2300 commented 2 years ago

I actually get the opposite to sometimes happen. It moves while I'm actively using the Mac. It also doesn't just move but also clicks. I can be typing and then my cursor just magically moves to another part of the type field.

Edit: Fixed on my end.

prashantgupta24 commented 2 years ago

@shanep2300 hmm, that has never happened to me. There is no clicking capability in the app, so not sure how that can happen. The only thing the app can do is to move the mouse cursor by a very small pixel amount

shanep2300 commented 2 years ago

@prashantgupta24 You can ignore my request. I had other Automator scripts running that I completely forgot about it. Restarting my computer fixed the issue. Sorry about that...