sw3103 / movemouse

Move Mouse is a simple piece of software that is designed to simulate user activity.
http://www.movemouse.co.uk/
GNU General Public License v3.0
573 stars 108 forks source link

[Bug] PC Falls Asleep with Move Mouse Active / Not staying active on Teams #36

Closed norimicry closed 2 years ago

norimicry commented 2 years ago

PC keeps falling asleep while using Move Mouse. Defeats the purpose of staying active. I use task scheduler to start/stop the program (schedules don't seem to work for me all the time) and every time I step away and come back, I notice my monitors are off and the PC is asleep. Would prefer not to change power settings.

Belabacsi commented 2 years ago

Same for me :-( I have tried to change a lot of configuration parameters, but I always got the same results. As soon as the first timer expires, it stops working.

2022-11-12_16-40-52_powershell

sw3103 commented 2 years ago

Hi,

Please could you both post/send your Settings.xml files?

%AppData%\Ellanet\Move Mouse\Settings.xml

norimicry commented 2 years ago

`<?xml version="1.0" encoding="utf-8"?>

10 60 false true true 30 false false false false true false false true true false false false 30 false false false false false false false false Verbose false 7e1ef0c1-972a-487f-ac5a-a35f34fd4d92 true true Interval 3 None Normal 5 d794209d-7c06-44b2-b690-2e0ffc024263 true true true true true true true 16:00:00 1fd7a1cf-6618-4474-a8b3-5dbe9cbda5c0 false false false false false true true 10:00:00 `
sw3103 commented 2 years ago

@cavazoshj please enable Logging and email it to me when you next see the issue, along with the time the issue occurred.

Belabacsi commented 2 years ago

Hi,

Please could you both post/send your Settings.xml files?

%AppData%\Ellanet\Move Mouse\Settings.xml

Dear Steve ! I have sent an e-mail to You with my configuration and log files attached.

norimicry commented 2 years ago

@cavazoshj please enable Logging and email it to me when you next see the issue, along with the time the issue occurred.

Logs have been emailed after observing Teams set status to away while logging shows Move Mouse is active.

sw3103 commented 2 years ago

Hi, Please could you both post/send your Settings.xml files? %AppData%\Ellanet\Move Mouse\Settings.xml

Dear Steve ! I have sent an e-mail to You with my configuration and log files attached.

Hi Bela,

I can see the issue after reviewing your config file. You have a single Move Mouse Cursor Action, which has the Trigger set to Start.

`

<MoveMouseCursorAction>

  <Id>a98f011c-e93e-427d-b6a8-5031f4a2934a</Id>

  <Name>Default</Name>

  <IsEnabled>true</IsEnabled>

  <Repeat>true</Repeat>

  <Trigger>Start</Trigger>

  <Distance>5</Distance>

  <Direction>Square</Direction>

  <Speed>Normal</Speed>

  <Delay>5</Delay>

</MoveMouseCursorAction>

`

This means that when Move Mouse starts, it will execute this Action and then automatically stop as you have no Actions with a Trigger that is configured for Interval. Try changing the Trigger on this Action to Interval and see if that resolves your issue.

sw3103 commented 2 years ago

@cavazoshj please enable Logging and email it to me when you next see the issue, along with the time the issue occurred.

Logs have been emailed after observing Teams set status to away while logging shows Move Mouse is active.

Thanks for the logs @cavazoshj. I'll reply in this thread for the benefit of any future observers.

I can see from the logs that your system idle time is being successfully reset each time Move Mouse performs your Move Mouse Cursor Action (this is the time span after each _autoPauseTimer_Elapsed):

2022-11-14 08:51:00.018 [DBG] _autoPauseTimer_Elapsed 00:00:29.5780000 2022-11-14 08:51:00.268 [DBG] _autoPauseTimer_Elapsed 00:00:29.8280000 2022-11-14 08:51:00.441 [INF] PerformActions Interval 2022-11-14 08:51:00.441 [INF] PerformActions _firstPass = False 2022-11-14 08:51:00.441 [DBG] BlackoutIsActive False 2022-11-14 08:51:00.441 [INF] CurrentState Executing 2022-11-14 08:51:00.441 [DBG] OnMouseStateChanged Executing 2022-11-14 08:51:00.441 [DBG] _vm_MouseStateChanged Executing 2022-11-14 08:51:00.441 [DBG] StopAutoPauseTimer 2022-11-14 08:51:00.441 [INF] Execute Name = | Distance = 3 | Direction = None | Speed = Normal | Delay = 5 | Trigger = Interval | Repeat = True 2022-11-14 08:51:00.441 [INF] Start 2022-11-14 08:51:00.441 [DBG] BlackoutIsActive False 2022-11-14 08:51:00.441 [DBG] StopAutoResumeTimer 2022-11-14 08:51:00.441 [INF] PerformActions Start 2022-11-14 08:51:00.441 [INF] PerformActions _firstPass = False 2022-11-14 08:51:00.441 [INF] ExecutionTime 08:51:30 2022-11-14 08:51:00.441 [INF] CurrentState Running 2022-11-14 08:51:00.441 [DBG] OnMouseStateChanged Running 2022-11-14 08:51:00.441 [DBG] _vm_MouseStateChanged Running 2022-11-14 08:51:00.441 [DBG] StopBlackoutTimer 2022-11-14 08:51:00.441 [DBG] StartAutoPauseTimer 2022-11-14 08:51:00.441 [DBG] StopAutoPauseTimer 2022-11-14 08:51:00.691 [DBG] _autoPauseTimer_Elapsed 00:00:00.2500000 2022-11-14 08:51:00.942 [DBG] _autoPauseTimer_Elapsed 00:00:00.5000000 2022-11-14 08:51:01.193 [DBG] _autoPauseTimer_Elapsed 00:00:00.7500000 2022-11-14 08:51:01.444 [DBG] _autoPauseTimer_Elapsed 00:00:01

I'm pretty sure your issue is to do with Teams itself, which doesn't seem to be easily fooled by routine mouse movements. You also mentioned in your mail that your were using the web version of Teams, which I don't personally have much experience with, but I would imagine will behave much the same as the client version.

Here is my suggestion - add the following Actions:

Hopefully with the random Directions and Speeds this will be enough to trick Teams.

norimicry commented 2 years ago

Hopefully with the random Directions and Speeds this will be enough to trick Teams.

Great suggestions. I've added the Active Application action as well as a Position Mouse Cursor action (because Teams web app doesn't look at universal activity like the desktop app, only window activity) and several Move Mouse Cursor actions. I'll let you know what I find.

norimicry commented 2 years ago

After adding the additional actions and watching for a couple days, the issue seems to have been user error and teams' advance away detection. Thanks, Steve. Great application. Closing issue.

Belabacsi commented 1 year ago

Hi, Please could you both post/send your Settings.xml files? %AppData%\Ellanet\Move Mouse\Settings.xml

Dear Steve ! I have sent an e-mail to You with my configuration and log files attached.

Hi Bela,

I can see the issue after reviewing your config file. You have a single Move Mouse Cursor Action, which has the Trigger set to Start.

`

<MoveMouseCursorAction>

  <Id>a98f011c-e93e-427d-b6a8-5031f4a2934a</Id>

  <Name>Default</Name>

  <IsEnabled>true</IsEnabled>

  <Repeat>true</Repeat>

  <Trigger>Start</Trigger>

  <Distance>5</Distance>

  <Direction>Square</Direction>

  <Speed>Normal</Speed>

  <Delay>5</Delay>

</MoveMouseCursorAction>

`

This means that when Move Mouse starts, it will execute this Action and then automatically stop as you have no Actions with a Trigger that is configured for Interval. Try changing the Trigger on this Action to Interval and see if that resolves your issue.

Dear Steve ! Thank You very much for the feedback, this solves my issue.