Page 1 of 1

FEATURE REQUEST: global keyboard shortcut to Show Macro.Buttons

Posted: Fri Jul 10, 2020 9:52 am
by tarosk
  • Enable global keyboard shortcut to show, bring to foreground and focus Macro.Buttons.
    Enable global keyboard shortcut to hide Macro.Buttons

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

Posted: Tue Aug 11, 2020 10:41 am
by Vincent Burel
we note your request.

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

Posted: Thu Aug 13, 2020 12:44 pm
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