0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

WindowsでCtrl + qでアクティブウィンドウを終了する方法(AutoHotKey)

Posted at

状況

MacのCommand + qみたいな感じでアプリを終了したく(alt + F4ではなく)、また他でCtrl + qも特に使ってないのでこのコマンドに割り当てたい状況でした。

結論

これをAhk2Exeでexeにコンパイルしてスタートアップフォルダにショートカットを置いて自動起動するようにしました。

CloseActiveWindow.ahk
^q::WinClose,A
    Return

参考:AutoHotkeyでウィンドウ表示方法変更

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?