Rockwell Automation 6182 Industrial Computer for the Windows CE Operating System User Manual

Page 92

Advertising
background image

8–24 Keypad

Operation

Publication 6182-UM001D-EN-P

3. In Run Program mode, the key is defined as non-repeating, and all

key codes are sent as a single string when the key is first pressed. A
key defined as a Run Program can submit a sequence of up to 80
characters. Unlike the other modes, wherein actions are directed at
the application with current focus, this action is directed at the
operating system to run the program that is named in the Text Edit
Box.

In the following example, the key press launches a program named
“ProgramName.exe”. You cannot enter a path name in this field.
You can only enter the program name. So either locate a shortcut to
the application in the search path (defined below) or follow the
directions below for adding search paths to the RAC6182 registry.

Figure 12
Run Program Mode

A programmable key in the Run Program mode calls the Win32 API call
CreateProcess() with the name of an executable program. Directories are
searched in the following order:

1. The Windows (\windows) directory

2. The root (\) directory of the device

3. OEM specified directories as follows:


The registry subkey can specify a search path for the CreateProcess
function:
\HKEY_LOCAL_MACHINE\Loader
“SystemPath”=multi_sz: \\path1\\ “\\path2\\”

Advertising