テンキーをランチャーとして使用する

テンキー7でBrave、テンキー8でSnippingToolを起動します。すでに起動している場合はアクティブにします。

Numpad7::
IfWinNotExist, ahk_exe brave.exe
{
	Run, C:\Program Files (x86)\BraveSoftware\Brave-Browser\Application\brave.exe
}
Else
{
	 WinActivate
}
Return
Numpad8::
IfWinNotExist, ahk_exe SnippingTool.exe
{
	Run, %windir%\system32\SnippingTool.exe
}
Else
{
	 WinActivate
}
Return