autohotkey - How to close Window Switcher -
on windows 8.1.
i assigned "run window switcher" "^r". , want close window switcher when release "lcontrol" don't know how. normal "alt+tab" hotkey, closed when release key "alt".
the below snippet opening window switcher works fine. can shift current window clicking "r" key keeping "lcontrol" key down. (i copied "c:\users\myname\appdata\roaming\microsoft\internet explorer\quick launch\window switcher.lnk" "c:\users\myname\documents\" way)
^r::run, "c:\users\myname\documents\window switcher" but below snippet closing window switcher doesn't work.
lctrl up::send,{enter} any help appreciated.
a little hackish, still job fine:
^r:: ; no need rely on shortcut here! run, explorer.exe shell:::{3080f90e-d7ad-11d9-bd98-0000947b0257} keywait, command if(winactive("ahk_class taskswitcherwnd")) { send, {enter} } homecoming #ifwinactive ahk_class taskswitcherwnd ^r:: run, explorer.exe shell:::{3080f90e-d7ad-11d9-bd98-0000947b0257} homecoming the trick create 2 hotkeys: 1 triggers if window switcher isn't opened, , 1 triggers if is. former "outer" hotkey wait until ctrl released , close window switcher. other "inner" hotkey registers every switch , delegates it.
autohotkey
No comments:
Post a Comment