Autohotkey: Toggle caps lock on/off on activating certain windows
问题 I want to write a script that will turn on caps lock when I activate a window containing particular keyword in its title(like SQL). I also want the caps lock to be turned off when I switch to a window whose title does not contain any of the keywords that I have specified. How can I do it? I have considered #Persistent with a timer to periodically check active window. But, I think there should be a better way. 回答1: check answers at: http://www.reddit.com/r/AutoHotkey/comments/1qjf83/force