From 88b8e691e1a7db433d878390f8e4ecaaa8520e27 Mon Sep 17 00:00:00 2001 From: Flamur Veliqi Date: Mon, 26 Jan 2026 09:40:43 +0100 Subject: [PATCH] Updated - Automatic Mouse Mover --- files/automatic-mouse-mover.bat | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/files/automatic-mouse-mover.bat b/files/automatic-mouse-mover.bat index ffb2ba2..103c063 100644 --- a/files/automatic-mouse-mover.bat +++ b/files/automatic-mouse-mover.bat @@ -71,16 +71,13 @@ echo using System.Runtime.InteropServices; echo public class MouseMover { echo [DllImport("user32.dll"^)] echo public static extern bool GetCursorPos(out POINT lpPoint^); -echo echo [DllImport("user32.dll"^)] echo public static extern uint SendInput(uint nInputs, INPUT[] pInputs, int cbSize^); -echo echo [StructLayout(LayoutKind.Sequential^)] echo public struct INPUT { echo public uint type; echo public MOUSEINPUT mi; echo } -echo echo [StructLayout(LayoutKind.Sequential^)] echo public struct MOUSEINPUT { echo public int dx; @@ -90,12 +87,10 @@ echo public uint dwFlags; echo public uint time; echo public IntPtr dwExtraInfo; echo } -echo echo public struct POINT { echo public int X; echo public int Y; echo } -echo echo public const uint INPUT_MOUSE = 0; echo public const uint MOUSEEVENTF_MOVE = 0x0001; echo } @@ -109,7 +104,7 @@ echo $moveCount = 0 echo. echo Write-Host "" echo Write-Host "========================================" -ForegroundColor Green -echo Write-Host "Mouse Mover Active (Hardware Simulation^)" -ForegroundColor Green +echo Write-Host "Mouse Mover Active (Hardware Simulation)" -ForegroundColor Green echo Write-Host "========================================" -ForegroundColor Green echo Write-Host "" echo Write-Host "Monitoring mouse movement..." @@ -156,7 +151,7 @@ echo [void][MouseMover]::SendInput(1, $inputs, [System.Runtime.InteropServic echo $moveCount++ echo. echo $time = Get-Date -Format 'HH:mm:ss' -echo Write-Host "[$time] Auto-moved mouse ($moveCount moves^)" -ForegroundColor Green +echo Write-Host "[$time] Auto-moved mouse ($moveCount moves)" -ForegroundColor Green echo. echo [void][MouseMover]::GetCursorPos([ref]$lastPos^) echo. @@ -168,6 +163,15 @@ echo Write-Host "========================================" -ForegroundColor Yell echo Write-Host "Mouse Mover Stopped" -ForegroundColor Yellow echo Write-Host "Total moves: $moveCount" -ForegroundColor Yellow echo Write-Host "========================================" -ForegroundColor Yellow +echo. +echo Start-Sleep -Seconds $interval +echo } +echo. +echo Write-Host "" +echo Write-Host "========================================" -ForegroundColor Yellow +echo Write-Host "Mouse Mover Stopped" -ForegroundColor Yellow +echo Write-Host "Total moves: $moveCount" -ForegroundColor Yellow +echo Write-Host "========================================" -ForegroundColor Yellow ) > "%TEMP%\MouseMover.ps1" REM Execute PowerShell script