Anc813 / MicMute

Mute default mic clicking tray icon or shortcut
MIT License
138 stars 23 forks source link

Cannot activate MicMute while in (some) game #22

Open roughnecks opened 2 years ago

roughnecks commented 2 years ago

Hi there.

I have setup MM with the "INSERT" hotkey and I have an AutoHotKey script which remaps my fourth mouse button to "INSERT", so that I can activate MM from my mouse too.

The problem is that when I'm in-game (specifically it's Euro Truck Simulator 2), pressing INS on the keyboard or pressing my mouse button does absolutely nothing.

So I asked on Steam's discussion forum for ETS2 and we found out that MicMute app from SoundForge is actually working, while this app isn't.

Can you think about anything that could cause such a "bug"? I really love your app and would like to continue using it, but for the time being I'm forced to change.

Hoping for the best, see you.

Anc813 commented 2 years ago

@roughnecks

  1. Try to check (just to check one time) does it works with combination (Ctrl + something, or Alt + something) 1.1 If it works with combinations - it means that some app in Yoursystem already occupied INS key and with Shortcut library https://github.com/AlexArchive/Shortcut it will not be possible to fix
  2. If it still not works - check Your game and app are running with same permissions.

I do not know about app from sourceforge. I suggest it works in different way. This program uses Shortcut library https://github.com/AlexArchive/Shortcut which uses register RegisterHotKey function from win32 API https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-registerhotkey

Maybe sourceforge app uses SetWindowsHookExA, it works in different way https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-setwindowshookexa

roughnecks commented 2 years ago
  1. Try to check (just to check one time) does it works with combination (Ctrl + something, or Alt + something) 1.1 If it works with combinations - it means that some app in Yoursystem already occupied INS key and with Shortcut library https://github.com/AlexArchive/Shortcut it will not be possible to fix
  2. If it still not works - check Your game and app are running with same permissions.

Checked with CTRL+INS > same stuff (I'm also sure none of my apps use the INSERT key) I tried running your app and Steam as admin and as regular user in the past (I did many tries) and nothing worked.

Maybe sourceforge app uses SetWindowsHookExA, it works in different way https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-setwindowshookexa

I don't know anything about this stuff, sorry.