r/programmingrequests • • 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

12 comments sorted by

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 pynput

to 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!

1

u/nofxjmf Feb 08 '23

Worked like a charm this go around. Tested it all night and worked perfectly. Thank You so much!!

1

u/AutoModerator Feb 08 '23

This post was automatically marked as solved but you can manually change this.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/Impressive-Ad9899 Feb 09 '23

Of course happy to help!