SendKeys codes (1 Viewer)

raskew

AWF VIP
Local time
Today, 06:51
Joined
Jun 2, 2001
Messages
2,734
Hi -

There are various codes used in conjunction with SendKeys, e.g. SendKeys "%(FMC)", False to Compact.

Where are these codes found? Have checked the Help File, the Microsoft site and have come up zero.

Your wisdom appreciated.

Bob
 
funny that

A97 help, which I find easiest to use gives

The plus sign (+), caret (^), percent sign (%), tilde (~), and parentheses ( ) have special meanings to SendKeys. To specify one of these characters, enclose it within braces ({}). For example, to specify the plus sign, use {+}.

but doesnt enlighten further!
 
Thanks Dave for the quick response.

What you found is exactly what I came up with, which still doesn't answer the question.

Best Wishes - Bob
 
You mean the FMC part?? FMC are just the letters that are beeing send...

% is the ALT key
+ Shift key
^ CTRL key

The () mean keep the previous key pressed while pressing these keys.

so in this case press and hold ALT, then press FMC, release ALT
 
Hi -

Understand that it's sending keystrokes. But, the referenced site still doesn't explain that Alt-FMC will initiate the Compact action. That's what I'm attempting to find.

Thanks for your response.

Bob
 
It is sending the keystrokes to the active window... I.e. to your access database...

You probably have a custom menu in the database, where typing (on the keyboard too) is sending the database to compact...
In my default menu that would be %TDC
For Tools > Database Utilities > Compact database

Alt (if you dont know) in most/all windows apps will send you to the menu.
 
Thank you!

That solves the mystery! Just couldn't see what those seemingly random letters represented.

Best wishes - Bob
 
The trick to remember is that these here keys are send to the active database window. If you dont know where they are, what they are doing, just repeat what the sendkeys does and you can find it too
 
you would think the help would be more informative

it gives a full list of the {} type keystrokes
 
you would think the help would be more informative
Yeah, for sure! That's what I thought.

An explanation as simple as what Namliam provided could clear up a whole bunch of confusion.

Bob
 
you would think the help would be more informative

Erm... We are talking M$ right??? Informative help is not one of their specialities...

I have been suggested the very thing that Bob is saying... Thanks for the complement, I love to keep things KISS
 

Users who are viewing this thread

Back
Top Bottom