This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ============================================================ | |
| # MouseJiggler.ps1 | |
| # v4 - Now with -ShakeMode for a full screen sweep | |
| # ============================================================ | |
| param( | |
| [int]$IntervalSeconds = 30, | |
| [int]$JigglePixels = 2, | |
| [switch]$ShakeMode, | |
| [int]$ShakeDistancePx = 200, | |
| [int]$ShakeSteps = 20, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Get the path to the Downloads folder | |
| $downloadsPath = [System.IO.Path]::Combine([System.Environment]::GetFolderPath([System.Environment+SpecialFolder]::UserProfile), 'Downloads') | |
| # Get the current date in 'dd-MM-yyyy' format | |
| $today = (Get-Date).ToString("dd-MM-yyyy") | |
| # Define the new folder path | |
| $newFolderPath = Join-Path -Path $downloadsPath -ChildPath $today | |
| # Check if the folder already exists; if not, create it |