Skip to content

Instantly share code, notes, and snippets.

@Kiruha01
Created October 25, 2020 12:18
Show Gist options
  • Save Kiruha01/1a30b03656c3c5971a034437e076e9bf to your computer and use it in GitHub Desktop.
Save Kiruha01/1a30b03656c3c5971a034437e076e9bf to your computer and use it in GitHub Desktop.
Python screamer
import subprocess, time, winsound
"""
ONLY FOR WINDOWS!
Fall asleep for 3 seconds
Increase system volume to MAX via nicrmd - https://www.nirsoft.net/utils/nircmd.html
Play your screamer 1.wav
"""
time.sleep(3)
pr = subprocess.Popen('nircmd.exe setsysvolume 65535')
winsound.PlaySound('1.wav', 0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment