My workflow is:
- While working with the laptop keyboard, no changes needed
- While at the desk with ext monitor, use Apple external keyboard. Run AutoHotKey script to swap LWinwith LAlt. Kill AHK process when back to laptop keyboard.
Following script used on a windows 10 machine.
LWin & Tab::AltTab
LWin::Send {LAlt}
LAlt::Send {LWin}
On running the script following issues occur.
I am using all lowercase to refer to the physical keys (e.g. lwin
) and ahk code for the semantic of a key press (e.g. LWin
).
Problem 1
If the active window is Task Manager
Should: lalt
produces LWin
, lwin
produces LAlt
Behaves: lalt
produces LAlt
. lwin
produces LWin
first time (shows start menu) however when pressed second time start menu is not hidden, although that is what LWin
is supposed to do.
Problem 2
lctrl+lalt+tab does not produce the desired effect, it works like LAlt+Tab
Should: window switcher should stay open after key release
Behaves: windows switcher selects app and closes after key release
Problem 3
lalt+tab does not produce LWin+Tab
Should: show virtual desktops
Behaves: opens start menu with a wicked selection on the Expand button (top-left corner of start menu)
How can the script be improved to mitigate the problems?
No comments:
Post a Comment