FEATURE REQUEST: global keyboard shortcut to Show Macro.Buttons

The Virtual Audio Mixer discussions and support...
Post Reply
tarosk
Posts: 24
Joined: Mon Apr 20, 2020 2:11 pm

FEATURE REQUEST: global keyboard shortcut to Show Macro.Buttons

Post by tarosk »

  • Enable global keyboard shortcut to show, bring to foreground and focus Macro.Buttons.
    Enable global keyboard shortcut to hide Macro.Buttons
Vincent Burel
Site Admin
Posts: 2008
Joined: Sun Jan 17, 2010 12:01 pm

Re: FEATURE REQUEST: global keyboard shortcut to Show Macro.Buttons

Post by Vincent Burel »

we note your request.
BangDroid
Posts: 14
Joined: Sun Dec 11, 2016 7:08 pm

Re: FEATURE REQUEST: global keyboard shortcut to Show Macro.Buttons

Post by BangDroid »

I have a slight workaround using AutoHotKey. Using one key, you can toggle between minimized and unminimized and opening it if it's closed.
In the code below, pressing F18 will open MacroButtons if it's closed. If it's open but not the active window it will become the active window. If it is the active window, it will be minimized and if it's minimized it will unminimize.
The only draw back is you have to deselect "System Tray (Close = Hide)" option in MacroButtons menu, other wise the script can't show (unminimize) the hidden window. Unlike VoiceMeeter itself which will show it's window when hidden if running the exe.

Code: Select all

;hotkey assignment
F18:: 

;path to executable
path = C:\Program Files (x86)\VB\Voicemeeter\

;executable file
app = VoicemeeterMacroButtons.exe

;If window of app doesn't exist, run it
IfWinNotExist, ahk_exe %app%
{
	Run %path%%app%
	WinWait, ahk_exe %app%
	WinActivate, ahk_exe %app%
	Return
}

;If the app's window is not the active window, make it so
IfWinNotActive, ahk_exe %app%
{

	WinActivate, ahk_exe %app%
	Return
}

;If the windows is active, minimize it
IfWinActive, ahk_exe %app%
{
	WinMinimize
	Return
}
Return
Post Reply