How to Use Percent, Caret, and Plus SendKeys in WinWord
ID: Q69939
|
The information in this article applies to:
-
Microsoft Word for Windows, versions 1.0, 1.1, 1.1a, 2.0, 2.0a, 2.0a-CD, 2.0b, 2.0c, 6.0, 6.0a, 6.0c
SUMMARY
The SendKeys statement is the only way to "send" keyboard instructions
to other Windows applications. For example, WordBASIC instructions
will not interact with the Control Panel in Windows without using
SendKeys.
The percent (%), caret (^), and plus (+) signs are special reserved
SendKeys.
The % sign represents the ALT key used to access Windows menus.
SendKeys "% up{enter}" accesses the Control Panel from Word for
Windows.
The ^ sign represents the CTRL key. SendKeys "^{esc}" brings up the
task list.
The + sign represents the SHIFT key. SendKeys "^+{F12)" brings up the
File Print dialog box.
There may be specific applications that need to have a %, ^, or + sign
sent to them, without having the special meanings attached to them.
This is done by surrounding the characters with curly brackets:
For the %:Sendkeys "{%}
For the +:Sendkeys "{+}
For the ^:Sendkeys "{^}
Note: The curly brackets are keystrokes NOT field codes.
Additional query words:
2.0 6.0 winword winword2 word6
Keywords :
Version : WINDOWS:1.0,1.1,1.1a,2.0,2.0a,2.0a-CD,2.0b,2.0c,6.0,6.0a,6.0c
Platform : WINDOWS
Issue type :
|