Thanks JRL, that's a pretty good suggestion. But actually, I've identified the problem, and I will describe it fully for you, so that I can understand and remember.
First, a little bit of code:
Code: Select all
Remark>//release all the shifts
Release Shift
Release RShift
Release LShift
MouseMove>-69,-268
Wait>1
Let>SK_DELAY=10
LClick>
Wait>1
Press Ctrl
Wait>1.5
Send>A
Wait>1.5
Send>C
Wait>1
Release Ctrl
GetClipBoard>StrText
Wait>1
MessageModal>StrText
This code will issue a Ctrl-Shift-A, and a Ctrl-Shift-C.
I found this little utility called OSD Hotkey.
http://www.romeosa.com/osdHotkey/help.html It records whatever your keyboard is doing, and it displays it in a persistent window.
I'm running this little test script on a Firefox page. It just happens that Firefox has a hotkey sequence, Ctrl-Shift-A, that opens its Add-ons Manager window. That's the only way I found this, because that Add-ons page kept opening up.
It turns out that when MS sees this:
it doesn't send "A". It actually sends Shift-lowercase-a. THAT is what is screwing me up.
Not CTRL-A, CTRL-C. It is sending CTRL-SHIFT-lowercase a, CTRL-SHIFT lowercase c
And Ctrl-Shift-a opens the Add-ons window.
So the correction to the code above is:
Code: Select all
LClick>
Wait>1
Press Ctrl
Wait>1.5
Send>a
Wait>1.5
Send>c
Wait>1
and it will work just fine. How about that?
Marcus, you should put that in the help somewhere. I banged my head on this problem for almost 4 days.
"A facility for quotation covers the absence of original thought." - Lord Peter Wimsey