Controlling caps lock?
Controlling caps lock?
- Subject: Controlling caps lock?
- From: Dave Stewart <email@hidden>
- Date: Tue, 18 May 2004 15:44:33 -0700
Hey list!
I'm working on a little script I have that automates the workflow of
another person (long story ... don't get me started!:) and I've been
chasing an impossible and very intermittent bug for the last week or
so. Sometimes the script just seemed to get lost (at the same places
each and every time) until you helped it along, then it would resume,
but this didn't happen all the time.
Turns out this bug was caused by the caps lock key on my keyboard.
Apparently when the caps lock key is on it doesn't matter what case you
sent text through when gooey scripting, it's all converted to upper
case for you by the caps lock key. In my situation, that's bad. Like
the script hangs until you help it along kind of bad. Not very
"automated" ...
I can work around this if I have to, but I don't like the answer
(assume the "Yes" option I'm trying for is always in the same place.
This assumption will work, until we upgrade the software I'm
automating. If they move that option in the future ...)
Question: is there a way (any way at all!) to tell if the caps lock key
is down? If so, would there happen to be a way to kick it back up via
script? (My thought is to detect whether the caps lock key is down, or
on, and save that state somehow, maybe a boolean. Kick the caps lock
key back up, or off, so it doesn't interfere and restore it at the end
of the script run.)
Please? Pretty please? With sugar on top? (I have this feeling I'm
hoping against all hope here, but I had to ask before accepting my
workaround solution.)
;-)
Dave Stewart
Aqua~Flo Supply (Goleta CA)
dstewart at aquaflo dot com
An ASCII character walks into a bar. Bartender asks, "What'll you
have?" ASCII character says, "Give me a double." Bartender asks,
"Having a bad day?" ASCII character says, "Yeah, I have a parity
error." Bartender says, "Hmmm. I thought you looked a bit off."
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.