I am using this code to switch between the last two opened windows
Code: Select all
`:: Send "{LAlt down}{Tab}{LAlt up}"
Code: Select all
`:: AltTab
Thanks in advance for any feedback!
Code: Select all
`:: Send "{LAlt down}{Tab}{LAlt up}"
Code: Select all
`:: AltTab
Code: Select all
#Requires AutoHotkey v2.0
l::SendInput("!{Tab}")
$`:: SendInput "{Alt down}{Tab Down}{Tab up}{Alt up}"
f::SendInput("{Alt down}{Tab Down}{Tab up}{Alt up}")
a & g::AltTab ;only works with tow comb
Thanks a lot for the quick reply! Which codes of the one you posted is more efficient? Is it more efficient in general to use hotkeys such as "!" "^" or to send the down/up combos?xMaxrayx wrote: ↑27 May 2024, 05:24Code: Select all
#Requires AutoHotkey v2.0 l::SendInput("!{Tab}") $`:: SendInput "{Alt down}{Tab Down}{Tab up}{Alt up}" f::SendInput("{Alt down}{Tab Down}{Tab up}{Alt up}") a & g::AltTab ;only works with tow comb
Hotkeys now mask the Win/Alt key on release only if it is logically down and the hotkey requires the Win/Alt key (with #/! or a custom prefix). That is, hotkeys which do not require the Win/Alt key no longer mask Win/Alt-up when the Win/Alt key is physically down. This allows hotkeys which send {Blind}{LWin up} to activate the Start menu (which was already possible if using a remapped key such as AppsKey::RWin).
Users browsing this forum: RussF, Smile_, songdg, Vanda_a, WarlordAkamu67 and 32 guests