If you are using a Windows machine, you can add this code to your main AutoHotKey script:
**********************************************
Capslock::
SetTitleMatchMode, 2
If WinExist("ahk_class Chrome_WidgetWin_0")
{
WinActivate
WinWaitActive
Send ^t
Send ^l
}
else
{
Run "C:\Users\YOURUSERNAME\AppData\Local\Google\Chrome\Application\chrome.exe"
sleep 100
Send ^t
Send ^l
}
return
+Capslock::Capslock
**************************************
* Be sure to enter your user profile name where it says "YOURUSERNAME" in the code.
You can also do this with your Apple machine, but for that you'll have to visit Lifehacker
If you don't know what an AutoHotKey script is. There is a Google for that too :) I'm not your dad.
0 comments:
Post a Comment