...previous

DEVELOPERS INFO

This page is for users which can program and want to use built-in interapplications interface of the Runner. Using Windows messaging system it is possible send commands to show icon (if it hidden), get Process ID and start command line of the Runner, and also send any schedule command including built-in instructions to execute it by the Runner immediately.

Interaction provided with two messages, which needed for registration using Win32 API function RegisterWindowMessage. Registered messages numbers may be used with PostMessage or SendMessage to the Runner's window, HWND of which may be got using function FindWindow with class name "PanSoft Runner":

  1. WM_RUNNER, registering as string message "PS Runner".
  2. WM_RUNNER_EXEC, registering as string message "PS Runner execute".
Messages dscription:

commandmessage value of WPARAMvalue of LPARAM addressee
show hidden iconWM_RUNNER 0ignored Runner
get Process ID 3 WM_RUNNER 1HWND of application window Runner
get pointer char* to start command lineWM_RUNNER 2HWND of application window Runner
returns Process ID of the RunnerWM_RUNNER 3Process ID of the Runner application
returns start command lineWM_RUNNER 4char* pointer to command line 1 application
execute specified schedule commandWM_RUNNER_EXEC Process ID of caller application 2 char* pointer to command to execute Runner

1 - in address space of the Runner. To get it use ReadProcessMemory before it should get HANDLE of process of the Runner using OpenProcess
2 - to get Process ID use GetCurrentProcessId.
3 - the Runner returns data also using WM_RUNNER message to window which HWND specified in request. .

Runner's source code and related is published here.