Skip to content

Instantly share code, notes, and snippets.

Created June 4, 2014 22:48
Show Gist options
  • Save anonymous/6ef89b14e0f610d59cd7 to your computer and use it in GitHub Desktop.
Save anonymous/6ef89b14e0f610d59cd7 to your computer and use it in GitHub Desktop.
space::send, {space}
Function(key)
{
if (GetKeyState("ctrl", "P") and GetKeyState("shift", "P"))
{
sendinput, ^+%key%
}
else if (GetKeyState("ctrl", "P") and GetKeyState("alt", "P"))
{
sendinput, ^!%key%
}
else if (GetKeyState("alt", "P") and GetKeyState("shift", "P"))
{
sendinput, !+%key%
}
else if GetKeyState("ctrl", "P")
{
sendinput, ^%key%
}
else if GetKeyState("shift", "P")
{
sendinput, +%key%
}
else if GetKeyState("alt", "P")
{
sendinput, !%key%
}
else
{
sendinput, %key%
}
return
}
space & l::Function("{right}")
space & f::
if GetKeyState("ctrl", "P")
{
;...
}
else if GetKeyState("shift", "P")
{
; ...
}
else
{
send, ^{tab} ; cycle tabs
}
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment