Ok, boys and girls ...
here is the very first incarnation ... well if you count the code above, it is the second. I had to do alot of changes to the code so it would work properly in other Windows platforms, but credit for the original idea goes to MP.
The premise is that when a window becomes active it notifies the OS, we can intercept those calls with a simple timer, get the active window, determine what application it is from, and if it is AutoCAD, turn Caps Lock ON if it is a browser window, turn Caps Lock OFF. Well, that is how it is SUPPOSED to work.
I don't have FireFox installed here unfortunately so I am not able to verify it working properly with it. If anyone has a problem with it working properly send me a screenshot of the browser window or AutoCAD window and I will attempt to resolve the problem.
And give me some feedback ...
Enjoy .. I know that I am going to use it...