by g00gler · 6y ago · 0 comments
Then I wrote a script to move the mouse randomly across the screen.
I'd post the script but I did a clean install. It wasn't very in-depth, though.
1. Write an endless loop
2. Generate 2 random numbers
3. call cliclick to move the mouse to those coordinates Echo "Keep-alive with Scroll Lock..."
$WShell = New-Object -com "Wscript.Shell"
while ($true)
{
$WShell.sendkeys("{SCROLLLOCK}")
Start-Sleep -Milliseconds 300
$WShell.sendkeys("{SCROLLLOCK}")
Start-Sleep -Seconds 240
}while true; do xdotool key Pause; sleep 240; done
Note that you use xdotool which is external so you are cheating. On Winodws you can do better with AHK which is compared to xdotool like spaceship to bucycle.