Skip to content

Instantly share code, notes, and snippets.

@tekkub
Created September 18, 2008 21:46
Show Gist options
  • Select an option

  • Save tekkub/11489 to your computer and use it in GitHub Desktop.

Select an option

Save tekkub/11489 to your computer and use it in GitHub Desktop.
Capslock::
if WinExist("ahk_class Chrome_XPFrame")
{
WinActivate
WinWaitActive
Send, ^t
}
else
{
EnvGet, USERPROFILE, USERPROFILE
Run "%USERPROFILE%\Local Settings\Application Data\Google\Chrome\Application\chrome.exe" --no-sandbox
WinWait, ahk_class Chrome_XPFrame
Send, ^t
}
return
+Capslock::Capslock ; Make shift-caps the real deal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment