r/programmingrequests • u/nofxjmf • Jan 06 '23
solved✔️ Muted Overlay
Just Wondering if something already exists or it is easy enough to create an overlay for mic muted.
Say I play World Of Warcraft and I have discord opened. I have a button to just mute and unmute my mic while leaving it set to open mic. I have always wanted to have o the top of my screen in game Text saying Muted or Un-Muted.
I don't need it to even work based off the discord mute function. Can literally be a program that when I press a button it just changes text back and forth and I can manually sync it myself.
1
Upvotes
View all comments
Show parent comment
1
u/Visual-Pen3001 Feb 07 '23
Try using this. I made a few modifications. Please note you will need to use
pip install pynputto get it to work.
https://pastebin.com/7iF7gQpd
For one, I changed your hotkeys to '=' and 'alt+q' for toggle and quit. I also made it so you can click and drag the text to a more comfortable spot. (NOTE: you must click and hold directly on the text to be able to drag it) Be wary, for some reason on my system if you drag and move it over your taskbar, and click on the taskbar, it disappears beneath the taskbar and is impossible to recover. Not sure why, so I just suggest not having it placed over your windows taskbar.
I fixed it up so that you can be pressing other keys within your game and your hotkey will still work.
Let me know if any further changes need to be made!