Skip to content

Instantly share code, notes, and snippets.

@veresh
Created May 2, 2016 15:53
Show Gist options
  • Save veresh/7b3b30c223a66321c2947561a461ea29 to your computer and use it in GitHub Desktop.
Save veresh/7b3b30c223a66321c2947561a461ea29 to your computer and use it in GitHub Desktop.
REM 1. Download nircmd from here http://www.nirsoft.net/utils/nircmd.html
REM 2. Unzip to a folder
REM 3. Copy paste this script to a bat file
REM 4. Double click this script, it will move mouse evert 60 seconds, so your monitor wont be locked :)
set PATH=<Path to folder which has nircmd>;%PATH%
for /l %%x in (1, 1, 1000000000) do ( nircmd movecursor 500 500 & echo %%x & timeout 60 & nircmd setcursor %%x %%x & timeout 60 )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment