commit 6412cad318fb4f7ae87a54b7c503d68ff824711a Author: Alexandre CATTEAU Date: Fri Oct 20 08:55:10 2023 +0200 Initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f399d49 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +*.exe +*.chm diff --git a/README.md b/README.md new file mode 100644 index 0000000..2c705c7 --- /dev/null +++ b/README.md @@ -0,0 +1,11 @@ +# NirCmd scripts + +This repository contains small scripts to run NirCmd on Windows systems, to move the cursor every minute + +### NirCmd +[NirCmd](https://www.nirsoft.net/utils/nircmd.html) is a small tool that can run many actions on Windows. +`nircmd-x64.zip` is the latest version we got (2.86). + +### Scripts +* `alive.sh` is a Shell script which calls NirCmd to move the cursor every 30 seconds. +* `alive.ps1` is a PowerShell script which calls NirCmd to move the cursor every 30 seconds. diff --git a/alive.ps1 b/alive.ps1 new file mode 100644 index 0000000..d083e8b --- /dev/null +++ b/alive.ps1 @@ -0,0 +1,5 @@ +while($true){ + .\nircmd.exe movecursor 1 1 + .\nircmd.exe movecursor -1 -1 + Start-Sleep -Seconds 30 +} diff --git a/alive.sh b/alive.sh new file mode 100644 index 0000000..21d9f62 --- /dev/null +++ b/alive.sh @@ -0,0 +1,9 @@ +#!/bin/sh + +while true; do + ./nircmd.exe movecursor 1 1 + ./nircmd.exe movecursor -1 -1 + sleep 30 +done + +exit 0 diff --git a/nircmd-x64.zip b/nircmd-x64.zip new file mode 100644 index 0000000..801633f Binary files /dev/null and b/nircmd-x64.zip differ