(Windows)[alt]キーのダブルプレスのショートカットで Chromeアプリに切り替える

●(Windows)[alt]キーのダブルプレスのショートカットで Chromeアプリに切り替える

# [alt]キーダブルタップで Chromeへ切り替え
~LAlt:: ;~ prefix when the hotkey fires, its key's native function will not be blocked
IF !(A_TickCount < LAlt)
{
  KeyWait, LAlt
  LAlt := A_TickCount + 150
  Return
}
LAlt =
  IfWinExist ahk_class Chrome_WidgetWin_1
    winactivate ahk_class Chrome_WidgetWin_1
  else
    Run chrome.exe 
    WinWaitActive ahk_class Chrome_WidgetWin_1
Return
No.1980
04/01 14:33

edit