Skip to content

Instantly share code, notes, and snippets.

@fanzeyi
Created May 26, 2021 06:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fanzeyi/dfc24f021ea942165242af91f3788389 to your computer and use it in GitHub Desktop.
Save fanzeyi/dfc24f021ea942165242af91f3788389 to your computer and use it in GitHub Desktop.
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
#Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
LWin & c::Send, ^c
LWin & v::Send, ^v
LWin & x::Send, ^x
LWin & a::Send, ^a
LWin & t::Send, ^t
LWin & w::Send, ^w
LWin & s::Send, ^s
LWin & 1::Send, ^1
LWin & 2::Send, ^2
LWin & 3::Send, ^3
LWin & 4::Send, ^4
LWin & 5::Send, ^5
LWin & 6::Send, ^6
LWin & 7::Send, ^7
LWin & 8::Send, ^8
LWin::Send, {}
LWin & Space::Send {RWin}
$*Tab::
Getkeystate, Lwinstate, LWin, P
if Lwinstate = D
Send {LWin up}{Lalt down}{Tab}
else
Send {Tab}
return
~$*LWin up::Send {Lalt up}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment