This is just in case anyone else notices the problem so they know what is going on. Peter is investigating it.
I use CAPS LOCK to do special actions, abort a macro, turn logging on, take a different path, whatever. I find it useful as I can press it and leave it.
I noticed recently it wasn't working, I have a macro that uses find any file to save a log of all my files created/modified in the last day, it's worked fine for months but then one day it caused serious problems because I had done a few updates and so the clipboard ended up being 5MB (40K files that day!). Anyway, I used CAPS LOCK to keep the apps open when I saw the problem so I could see what had changed, but they still closed.
It took me a while to track it down but the problem seems to be that if you have a 'Type a keystroke' action prior to the modifier check, then the modifier check will always say that the CAPS LOCK key is OFF. This is also the case if the type action is in a sub-macro.
I wonder if this is why I was unable to get the CAPS LOCK modifier check to work for me when I first tried doing this some months ago. I'm not sure if I can find that old code, but I'm extremely interested in knowing what happens here.
Interesting! Your post is a great reminder to us all that when we encounter odd situations, we should probably post about it because you never know if someone else might encounter the same situation.
And @Sleepy, even if this ends up not being the exact situation you encountered, perhaps it's similar. Did you ever post a question about your issue, or did you just assume that was the way it worked? I know for me I'd probably just assume that's how it works, so I hope this is a lesson to me to verify those assumptions next time.
Honestly, I don't even know how you isolated it. The debugging process must have been excruciating.
Anyway, way cool in figuring it out (as much as you have to this point), and I'm celebrating with you, because I know there aren't many people you can share this kind of success with, who truly understand.
The life of a programmer is isolating causes of problems. I'm doing that probably 8 hours per day. The rewards are with it. Perhaps it's a little like giving birth, there's pain but the final reward is what you remember for the rest of your life.
I confess one thing. Sometimes when I figure out how to do something I don't share my discovery with others. That way I'm the only one who can achieve something. I know that's not generous but it does happen on occasion.
I think that some mechanical jobs like carpenters may share some of the same problem solving skills as a programmer. I wonder if anyone has ever studied that.