Add files via upload

This commit is contained in:
egieb
2023-12-18 21:42:05 +00:00
committed by GitHub
parent 1f0a979ee6
commit 5b80d4f94a

21
Pranks/USB-SoundSwap.txt Normal file
View File

@@ -0,0 +1,21 @@
REM Title: USB device sound swapper
REM Author: @beigeworm | https://github.com/beigeworm
REM Description: Swaps the USB Device connect and disconnect sounds.
REM Target: Windows 10,11
REM you can restore default sounds by running script again.
DEFAULT_DELAY 100
GUI r
DELAY 750
STRING powershell -NoP -NonI -Ep Bypass
ENTER
DELAY 5000
STRING $Connect = "C:\Windows\media\Windows Hardware Insert.wav";$Disconnect = "C:\Windows\media\Windows Hardware Remove.wav";$Path1 = "HKCU:\AppEvents\Schemes\Apps\.Default\DeviceDisconnect\.Current";$Path2 = "HKCU:\AppEvents\Schemes\Apps\.Default\DeviceConnect\.Current";$Which = Get-ItemProperty -Path $Path1 -Name "(Default)";if ($Which.'(default)' -eq $Connect){Set-ItemProperty -Path $Path1 -Name "(Default)" -Value $Disconnect -Force;Set-ItemProperty -Path $Path2 -Name "(Default)" -Value $Connect -Force}else{Set-ItemProperty -Path $Path1 -Name "(Default)" -Value $Connect -Force;Set-ItemProperty -Path $Path2 -Name "(Default)" -Value $Disconnect -Force};exit
DELAY 500
ENTER