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":
command | message | value of WPARAM | value of LPARAM | addressee |
show hidden icon | WM_RUNNER | 0 | ignored | Runner |
get Process ID |
WM_RUNNER | 1 | HWND of application window | Runner |
get pointer char* to start command line | WM_RUNNER | 2 | HWND of application window | Runner |
returns Process ID of the Runner | WM_RUNNER | 3 | Process ID of the Runner | application |
returns start command line | WM_RUNNER | 4 | char* pointer to command line |
application |
execute specified schedule command | WM_RUNNER_EXEC | Process ID of caller application |
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 Runner's source code and related is published
here.
2 - to get Process ID use
GetCurrentProcessId.
3 - the Runner returns data also using WM_RUNNER message to
window which HWND specified in request.
.