_Application.DDEExecute(Int32, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Runs a command or performs some other action or actions in another application by way of the specified DDE channel.
public:
void DDEExecute(int Channel, System::String ^ String);
public void DDEExecute (int Channel, string String);
Parameters
- Channel
- Int32
Required Integer. The channel number returned by the DDEInitiate(String, String) method.
- String
- String
Required String. The message defined in the receiving application.
Remarks
The DDEExecute method is designed to send commands to another application. You can also use it to send keystrokes to another application, although the SendKeys(Object, Object) method is the preferred way to send keystrokes. The String
argument can specify any single key combined with ALT, CTRL, or SHIFT, or any combination of those keys. Each key is represented by one or more characters, such as "a" for the character a, or "{ENTER}" for the ENTER key.
To specify characters that aren't displayed when you press the corresponding key (for example, ENTER or TAB), use the codes listed in the following table. Each code in the table represents one key on the keyboard.
BACKSPACE | {BACKSPACE} or {BS} |
BREAK | {BREAK} |
CAPS LOCK | {CAPSLOCK} |
CLEAR | {CLEAR} |
DELETE or DEL | {DELETE} or {DEL} |
DOWN ARROW | {DOWN} |
END | {END} |
ENTER | ~ (tilde) |
ENTER (numeric keypad) | {ENTER} |
ESC | {ESCAPE} or {ESC} |
F1 through F15 | {F1} through {F15} |
HELP | {HELP} |
HOME | {HOME} |
INS | {INSERT} |
LEFT ARROW | {LEFT} |
NUM LOCK | {NUMLOCK} |
PAGE DOWN | {PGDN} |
PAGE UP | {PGUP} |
RETURN | {RETURN} |
RIGHT ARROW | {RIGHT} |
SCROLL LOCK | {SCROLLLOCK} |
TAB | {TAB} |
UP ARROW | {UP} |
You can also specify keys combined with SHIFT and/or CTRL and/or ALT. To specify a key combined with one or more of the keys just mentioned, use the following table.
SHIFT | + (plus sign) |
CTRL | ^ (caret) |
ALT | % (percent sign) |
Applies to
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기