active only on certain days of the week

Jun 15, 2015 at 5:32 PM
Is it possible to have Move Mouse disable itself on weekends?
Coordinator
Jun 22, 2015 at 9:49 AM
In it's current form - no.

I am planning to start work on a new version soon, although the release will be quite a few weeks away.

Even though the UI doesn't have this option, it may be possible to do this using a custom script.

What exactly are you trying to do?
Jun 22, 2015 at 5:40 PM
To have Move Mouse only run (i.e. move the mouse) on weekdays from 9am to 5pm.
Coordinator
Jun 24, 2015 at 10:19 AM
I'm sure we could achieve this using a custom script, where we would use Move Mouse simply to execute the script at each interval, and the script would decide whether to move the mouse pointer or not depending on the time of day, and day of the week.

Which of the behaviours do you have enabled in Move Mouse (move mouse pointer, send keystrokes, etc.)?
Jun 24, 2015 at 7:34 PM
I only use "Move mouse pointer" and in stealth mode usually.
Coordinator
Jun 25, 2015 at 3:45 PM
OK - I think we can get this working using a script that runs at each Interval to interrupt the screensaver (probably using SendKeys to send a Shift keystroke which is fairly stealthy) between the hours of 9:00am and 5:00pm Mon-Fri.

Do you have any scripting experience?
Jun 25, 2015 at 7:53 PM
Edited Jun 25, 2015 at 7:53 PM
I do not have very much scripting experience but might be able to figure it out with some help! :)
Coordinator
Jun 29, 2015 at 11:59 AM
I've used PowerShell which is the language of choice these days for Windows. I'm sure there are more efficient ways of doing this, although I think this reads better for a novice scripter.

Have this code run in an Interval Script.
$SendShiftKey = $false


if (((Get-Date).Hour -ge 9) -and ((Get-Date).Hour -lt 17)) {
    switch ((Get-Date).DayOfWeek) {
        Monday {
            $SendShiftKey = $true
        }
        Tuesday {
            $SendShiftKey = $true
        }
        Wednesday {
            $SendShiftKey = $true
        }
        Thursday {
            $SendShiftKey = $true
        }
        Friday {
            $SendShiftKey = $true
        }
    }
}

if ($SendShiftKey) {
    Write-Host "Sending shift key..."
    $WshShell = New-Object -ComObject "WScript.Shell"
    $WshShell.SendKeys("+")
}
You will have to download the latest version (3.3.0) that I have just released, which will allow you to untick all the Actions, and use it purely for executing scripts.
Marked as answer by sw3103 on 7/4/2015 at 2:44 PM