home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1998 July & August
/
Pcwk78a98.iso
/
E-MAIL
/
ESPMC
/
SENDKEYS.TX_
/
SENDKEYS.TX
Wrap
Text File
|
1997-11-18
|
4KB
|
124 lines
Sends one or more keystrokes as if typed at the keyboard to the
program launched by ESP Mail Check.
Syntax
======
(Examples to retrieve new mail are given)
*Note: If the keys are not being sent to the program, try adding
{p} commands to the beginning of the key sequence to allow
the program to finish loading before sending the keys. The
{p} command adds a one second pause and can be inserted
anywhere in the string in the Send Keys box. (See Netscape
Mail below - Pause 3 seconds before sending the CTRL-T to
download mail)
-- Outlook Express --------------------------------------------
Filename: msimn.exe
Actual action: Tools/Download All
Key combination: CTRL+SHIFT M
Send Keys string: ^+m
-- Outlook 97 -------------------------------------------------
Filename: outlook.exe
Actual action: Tools/Check for new Mail
Key combination: Alt-t,c
Send Keys string: {p}%tc
-- Netscape Mail ----------------------------------------------
Filename: netscape.exe -mail
Actual action: File/GetMessages/New
Key combination: CTRL-t
Send Keys string: {p}{p}{p}^t
-- Pegasus Mail (Win95) ---------------------------------------
Filename: winpm-32.exe
Actual action: File/Check host for new mail
Key combination: Alt-f,c
Send Keys string: %fc
Remarks
=======
Each key is represented by one or more characters. To specify a
single keyboard character, use the character itself. For example,
to representthe letter A, use "A" for string. To represent more
than one character,append each additional character to the one
preceding it. To represent the letters A, B, and C, use "ABC" for
string.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 {+}. Brackets ([ ]) have no special
meaningto SendKeys, but you must enclose them in braces. In other
applications, brackets do have a special meaning that may be
significant when dynamic data exchange (DDE) occurs. To specify
brace characters, use {{} and {}}.To specify characters that aren't
displayed when you press a key, suchas ENTER or TAB, and keys that
represent actions rather than characters, use the codes shown
below:
1 Second Pause {P}
Key Code
BACKSPACE {BACKSPACE}, {BS}, or {BKSP}
BREAK {BREAK}
CAPS LOCK {CAPSLOCK}
DEL or DELETE {DELETE} or {DEL}
DOWN ARROW {DOWN}
END {END}
ENTER {ENTER}or ~
ESC {ESC}
HELP {HELP}
HOME {HOME}
INS or INSERT {INSERT} or {INS}
LEFT ARROW {LEFT}
NUM LOCK {NUMLOCK}
PAGE DOWN {PGDN}
PAGE UP {PGUP}
PRINT SCREEN {PRTSC}
RIGHT ARROW {RIGHT}
SCROLL LOCK {SCROLLLOCK}
TAB {TAB}
UP ARROW {UP}
F1 {F1}
F2 {F2}
F3 {F3}
F4 {F4}
F5 {F5}
F6 {F6}
F7 {F7}
F8 {F8}
F9 {F9}
F10 {F10}
F11 {F11}
F12 {F12}
F13 {F13}
F14 {F14}
F15 {F15}
F16 {F16}
To specify keys combined with any combination of the SHIFT,
CTRL, and ALT keys, precede the key code with one or more of
the following codes:
Key Code
SHIFT +
CTRL ^
ALT %
To specify that any combination of SHIFT, CTRL, and ALT should
be helddown while several other keys are pressed, enclose the
code for those keys in parentheses. For example, to specify to
hold down SHIFT while E and C are pressed, use "+(EC)". To
specify to hold down SHIFT while E is pressed, followed by C
without SHIFT, use "+EC".To specify repeating keys, use the
form {key number}. You must put a space between key and number.
For example, {LEFT 42} means press the LEFT ARROW key 42 times;
{h 10} means press H 10 times.
Note You can't use SendKeys to send keystrokes to an application
that is not designed to run in Microsoft Windows. Sendkeys also
can't send the PRINT SCREEN key {PRTSC} to any application.