Skip to content

Instantly share code, notes, and snippets.

@hetima
Last active February 16, 2019 00:54
Show Gist options
  • Save hetima/8b0f53eddd49e3615a28b2854032da6e to your computer and use it in GitHub Desktop.
Save hetima/8b0f53eddd49e3615a28b2854032da6e to your computer and use it in GitHub Desktop.
ahk スクリプト
; エクスプローラのウィンドウ前に出す
+!F11::
; エクスプローラが最前面ならサイクル
WinGetClass, front_class, A
if front_class = CabinetWClass
{
WinGet last_win, IDLast, ahk_class CabinetWClass
WinActivate, ahk_id %last_win%
; 後ろから順に前に出す
} else {
WinGet windows, List, ahk_class CabinetWClass
Loop %windows%
{
target_index := windows-A_Index+1
target_id := windows%target_index%
WinActivate ahk_id %target_id%
}
}
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment