Seitenhierarchie

  Wiki Navigation

    Loading...


 Recently Updated


 Latest Releases

 MediaPortal 1.38
            Releasenews | Download
 MediaPortal 2.5
            Releasenews | Download



Overview

SendMessage is a command line interface utility that sends Windows Messages.  The message parameters and target application are specified on the command line.  This utility is useful for interfacing non-standard remote control receivers with MediaPortal.  If your IR receiver software/driver can be configured to invoke a system command when an IR command is received then SendMessage can be used to "convert" the IR command to a Windows Message that may be received by the MediaPortal Message Plugin.

Installation

To install this utility:

  1. Download the utiity from the MediaPortal Extensions repository in the Utilities section.
  2. Unzip the distribution package to your harddrive
  3. Browse the unzipped distribution to "SendMessage\bin\Release\"
  4. Copy SendMessage.exe to a convenient location on your harddrive (e.g. "Program Files\Team MediaPortal\Utilities")
  5. Integrate SendMessage.exe into your HTPC setup according to your needs

Usage

SendMessage is a simple command line utility that accepts parameters and sends a Windows Message formed using the supplied parameters.

Usage: SendMessage [OPTIONS]

Options:

-c, -C=VALUE               The window class name of the window to receive the message, optional.
-n, -N=VALUE               The window name, optional (choose either -n or -p).
-p, -P=VALUE               The process name; sends the message to the first matching process, optional (choose either -n or -p).
-m, -M=VALUE              The windows message number to send (decimal), required.
-w, -W=VALUE              The messages wParam value (decimal), required.
-l, -L=VALUE                 The messages lParam value (decimal), required.
-d, -D=VALUE               Milliseconds to delay between each message sent, not yet implemented.
-h, --help                       Show this message and exit.

Examples:

  • Send the MediaPortal Message Plugin a remote control number '5' key
    SendMessage -p="mediaportal" -m 32768 -w 5 -l 5
     
  • Send the MediaPortal Message Plugin a remote control 'channel up' key
    SendMessage -p "mediaportal" -m 32768 -w 5 -l 18

For a list of Windows Message remote control key value (lParam's) see the Message Plugin.

Discussion and Support

Source code is included with the distribution.  If you encounter problems or would like to contribute please post in the forum thread.

   

 

This page has no comments.