RunPager VS	Video Camera Security System
		The Send Keys Information Sheet
		(c) Copyright 1999 RunPager Software Engineering

----------------------------------------------------------------
Please Select Edit Menu Word Wrap
----------------------------------------------------------------

THE SEND KEYS FORM

	- The send keys function allows one application program to control the operation of
another program by sending keystrokes just as if you typed them from your keyboard.  In
this case the RunPager application controls your video camera software by sending keys to
setup the camera and snap a picture.  If you don't require any setup you can just enter
the commands to snap the picture and make the setup field blank.

	- To determine what keystrokes are required to setup the camera or snap a picture
check for the underline character in the menu item of your camera's software.  These
underline characters execute the menu item selection when the "Alt" key is held down.  The
send keys command for the "Alt" key is the "%" character.  You may also find "Ctrl" keys
listed with the menu item that will likewise execute the menu item selection.  The send
key command for the "Ctrl" key is the "^" character.

	- Example 1) If you have to hold down the "Alt" key while pressing "F", "S", and "C"
then group the letters with a parenthesis as follows: %(FSC).  This is the Connectix Color
QuickCam setup string that selects the "File" menu, the "Send To" item, and the
"Clipboard" sub-item.  You also could have used ^(C), the "Ctrl" and "C" keys to do the
same thing for the Color QuickCam.

	- Example 2) If you need more than one send keys command you can separate the
commands by a comma.  For instance you might add %(VT) to the setup command string to hide
the toolbar as in: %(FSC), %(VT).

	- Example 3) The send keys command for the Color QuickCam to snap a picture is %(FT).
That is the same as the "F" and "T" keys being pressed while the "Alt" key is held down.

	- Example 4) The send keys commands for the VidCap32.exe to snap a picture is %(CS),
%(EC).  The %(CS) command causes the camera to snap the picture and the %(EC) command
copies the captured picture to the clipboard.  The RunPager VS program then retrieves the
picture from the clipboard for processing.

THE VISUAL BASIC SEND KEYS INFORMATION

Sends one or more keystrokes to the active window as if they had been entered at the
keyboard.

Syntax

 SendKeys keytext [,wait]

Remarks

The SendKeys statement has these parts:

Part	Description

keytext	String expression sent to the active window.
wait	Numeric expression. If wait is True, keystrokes must be processed before control is
returned to the procedure.  If wait is False, control is returned to the procedure
immediately after the keys are sent.  If wait is omitted, False is assumed as the default.

Each key is represented by one or more characters.  To specify a single keyboard
character, use the character itself.  For example, to represent the letter A, use "A" for
keytext.  If you want 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
keytext.

The plus sign (+), caret (^), percent sign (%), tilde (~), and parentheses ( ) have
special meanings to SendKeys.  To specify one of these characters, enclose it inside
braces.  For example, to specify the plus sign, use {+}.  Brackets ([ ]) have no special
meaning to SendKeys, but you must enclose them in braces as well, because in other
applications for Microsoft Windows, brackets do have special meaning that may be
significant when dynamic data exchange (DDE) occurs.  To send brace characters, use {{}
and {}}.
To specify characters that aren't displayed when you press a key (such as Enter or Tab)
and keys that represent actions rather than characters, use the codes shown below:

Key			Code				Key			Code
Backspace		{BACKSPACE} or {BS} or {BKSP}	
Break			{BREAK}
Caps Lock		{CAPSLOCK}			Clear			{CLEAR}
Del			{DELETE} or {DEL}		Down Arrow		{DOWN}
End			{END}				Enter	{ENTER} or ~
Esc			{ESCAPE} or {ESC}		Help			{HELP}
Home			{HOME}			Ins			{INSERT}
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 Shift, Ctrl, and Alt keys, precede the
regular key code with one or more of the following codes:

Key		Code

Shift		+
Control	^
Alt		%

To specify that Shift, Ctrl, and/or Alt should be held down while several other keys are
pressed, enclose the keys' code in parentheses.  For example, to have the Shift key held
down while E and C are pressed, use "+(EC)".  To have Shift held down while E is pressed,
followed by C being pressed 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	SendKeys can't send keystrokes to an application that is not designed to run in
Microsoft Windows.  Sendkeys also can't send the Print Screen (PRTSC) key to any
application.