Skip to content

Instantly share code, notes, and snippets.

@Natgho
Created September 20, 2022 09:53
Show Gist options
  • Save Natgho/5089ebcc3d00c2d160e264437a1f53d1 to your computer and use it in GitHub Desktop.
Save Natgho/5089ebcc3d00c2d160e264437a1f53d1 to your computer and use it in GitHub Desktop.
WingardiumLeviosa
Clear-Host
Add-Type -AssemblyName System.Windows.Forms
Echo " __ __.__ .___.__ .____ .__
/ \ / \__| ____ _________ _______ __| _/|__|__ __ _____ | | _______ _|__| ____ ___________
\ \/\/ / |/ \ / ___\__ \\_ __ \/ __ | | | | \/ \ | | _/ __ \ \/ / |/ _ \/ ___/\__ \
\ /| | | \/ /_/ > __ \| | \/ /_/ | | | | / Y Y \ | |__\ ___/\ /| ( <_> )___ \ / __ \_
\__/\ / |__|___| /\___ (____ /__| \____ | |__|____/|__|_| / |_______ \___ >\_/ |__|\____/____ >(____ /
\/ \//_____/ \/ \/ \/ \/ \/ \/ \/ "
Echo ""
Echo " For My Sweet Baby TS World..."
$WShell = New-Object -com "Wscript.Shell"
while ($true) {
$WShell.sendkeys("{CAPSLOCK}")
Start-Sleep -Milliseconds 200
$WShell.sendkeys("{CAPSLOCK}")
$Pos = [System.Windows.Forms.Cursor]::Position
$x = $pos.X + 10
$y = $pos.Y + 10
[System.Windows.Forms.Cursor]::Position = New-Object System.Drawing.Point($x, $y)
Start-Sleep -Seconds 5
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment