Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jackdoe committed Oct 5, 2023
1 parent 3f1c2d3 commit f5d5859
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions projects/panic/cards/lower_sound.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
# pip install pywin32
import win32api
import win32con
import win32gui
import time
import random

WM_APPCOMMAND = 0x319
APPCOMMAND_VOLUME_DOWN = 0x90000

def decrease_sound():
win32api.SendMessage(
-1,
win32con.WM_APPCOMMAND,
0,
win32con.APPCOMMAND_VOLUME_DOWN
)
win32gui.GetForegroundWindow(),
WM_APPCOMMAND,
0,
APPCOMMAND_VOLUME_DOWN
)


# slowly decrease the volume every 1 to 30
Expand Down

0 comments on commit f5d5859

Please sign in to comment.