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 1 year has passed since last update.

【AutoHotkey v1.1】マクロの一括起動と全終了

Posted at

一括起動

指定したマクロを一括で起動するマクロ。

Array := ["マクロ1.ahk","マクロ2.ahk","マクロ3.ahk"]
For index, element in Array {
  Run, %element%
}

一括起動した場合、マクロを複数起動するとタスクバーアイコンが複数並んでどのアイコンとマクロが対応しているかわからなくなるため、各マクロ毎にアイコンを変更させることによって区別できるようにしておきたい。

;アイコンの変更
menu, TRAY, Icon, img\\マクロx.png,,1

全終了

起動しているマクロを全て終了するマクロ。

DetectHiddenWindows, On
SetTitleMatchMode,2
GroupAdd, Grp, ahk_class AutoHotkey , , , %A_ScriptName%
GroupClose, Grp, A
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?