------------------------------------------------------------------------ SendMessage - v1.0.0.0 (July 17th, 2007) by Ehtyar Holmes Copyleft 2007 - No rights reserved. ------------------------------------------------------------------------ * This plug-in is designed to facilitate control of various third-party applications from FARR. It uses the windows PostMessage api to send standard window messages to the window/dialog of an application you the user specifies by class or title or both. The user also specifies the UINT, wParam and lParam, and thus it can be used to send any form or window message that does not link to data (WM_NOTIFY, WM_NCHITTEST etc). * An alias accompanies the plugin, SendMessage, which can be used in the following form: SendMessage "" "" Window Class and Window Title can be user interchangably, however at least one must be specified, or the window cannot be located, and a Message Box will appear saying so. IMPORTANT: When leaving the class or title field blank, specify a SINGLE DOUBLE QUOTATION MARK (") in its place. Specifying empty double quotes will result in undefined behaviour. UINT, wParam and lParam can be any 32 bit value, and can be specified in the following forms: -Any number preceeded by 0x is interpreted as a hexadecimal integer. -Any number preceeded by a 0 is interpreted as an octal integer. -Any number beginning with 1-9 is interpreted as a decimal interger. Any number not fitting one of these three categories will not be converted, and results in this case will be unknown. If you do not wish to specify a number for any of the three latter fields, you must use a zero (0x0 or 0) in its place, or a Message Box will appear saying you have too few parameters. The plug-in is also accompanied by several alias groups, designed to assist in the control of certain media player applications. The format of these aliases is as such: -Winamp: wamp e.g. wamp play, wamp stop, wamp vol -Windows Media Player: wmp e.g. wmp play, wmp pause -Foobar: foo e.g. foo play, foo stop (foobar also has a component that will allow it to accept the entire complement of winamp messages, which are far kore extensive that those offered in the foo alias file. You can find foo_winamp_spam at http://chron.visiondesigns.de/foobar2000/#foo_winamp_spam) -KMPlayer: wamp (KMPlayer natively supports all the winamp messages) NOTE: This plug-in will NOT work if the player is not already running, that is the job of FARR, remember? Players known not to work with the PostMessage API at this time are: -MusikCube -XMPlay Users can use the Spy++ utility (comes with visual studio) or the Winspector window spy utility (http://www.windows-spy.com/) to determine if a window will accept WM_COMMAND messages posted with this utility, or specific messages may be listed on the applications website. * There are no options whatsoever for this plug-in as of version 1.0.0.0. If you don't wish to use it, you may remove it from your plug-in directory. * I (Ehtyar) am not responsible for providing any kind of support in regards to the use of this plug-in. I am, however, willing to do so WHERE AND WHEN I SEE FIT, and any bug reports can be filed in the plug-ins forum thread at http://www.donationcoder.com/. * SENDMESSAGE IS DISTRIBUTED "AS IS". NO WARRANTY OF ANY KIND IS EXPRESSED OR IMPLIED. YOU USE AT YOUR OWN RISK. THE AUTHOR WILL NOT BE LIABLE FOR DATA LOSS, DAMAGES, LOSS OF PROFITS OR ANY OTHER KIND OF LOSS WHILE USING OR MISUSING THIS SOFTWARE. * Requirements | The FindAndRunRobot version 2.0 and above. * Description | Allows basic limited control of 3rd-party applications from the FindAndRunRobot by Mouser at: http://www.donationcoder.com/Software/Mouser/findrun/index.html. * Thanks: Mouse Man: For the awesomeness that is FARR, and his invaluable help in the creation of this plug-in hamradio: For his permission to bootleg his readme. tinjaw: For his procurement of the correct Windows Media Player values.