GroupClose

GroupActivateまたはGroupDeactivateでアクティブになったばかりのウィンドウを閉じます。そして、シリーズの次のウィンドウをアクティブにします。また、グループ内のすべてのウィンドウを閉じることも可能です。

GroupClose GroupName , Mode

パラメータ

GroupName

型:文字列

GroupAddで元々定義されているグループ名

Mode

型:文字列

空白または省略されたときは、アクティブウィンドウを閉じて、最も古いウィンドウをアクティブにします。そうでなければ、次の文字のうち、ひとつを指定してください。

R:最も新しいウィンドウ(最も最近アクティブになったウィンドウ)がアクティブになりますが、この関数が与えられたときにグループのメンバーがアクティブでない場合に限ります。"R"は、一時的に関係ない作業に切り替えるケースに有効です。GroupActivateGroupDeactivate、GroupCloseでグループに戻ると、最も古いウィンドウではなく、直近で操作していたウィンドウがアクティブになります。

A:グループの全メンバーがクローズとなります。WinClose"ahk_group GroupName"と同じ効果です。

備考

Modeパラメータが "A "でない場合、GroupNameに対する直前のアクションがGroupActivateGroupDeactivateかによって、この関数の動作が決定されます。If it was GroupDeactivate, this function will close the active window only if it is not a member of the group (otherwise it will do nothing). If it was GroupActivate or nothing, this function will close the active window only if it is a member of the group (otherwise it will do nothing). この動作により、GroupNameGroupActivateまたはGroupDeactivateのホットキーに付随するものとして、GroupCloseをホットキーに割り当てることができます。

アクティブなウィンドウが閉じると、システムは通常、次に最も新しくアクティブになったウィンドウをアクティブにします。If the newly active window is a match for the same window specification as the window that was just closed, it is left active even though the default Mode would normally dictate that the oldest window should be activated next. If the newly active window is a match for any of the group's window specifications, it is left active.

ウィンドウグループの詳細については、GroupAddをご覧ください。

GroupAdd, GroupActivate, GroupDeactivate

GroupActivateまたはGroupDeactivateでアクティブになったウィンドウを閉じ、ウィンドウグループの中で最も新しいウィンドウ(最も最近アクティブになったウィンドウ)をアクティブにします。

GroupClose "MyGroup", "R"