官网: http://www.maxoutput.com/SendMsg.html
下载: http://bcn.bathome.net/s/tool/index.html?key=SendMsg | =============================================================================== | | SendMsg v2.1 - Window Message Poster - (c) 2005 Maximum Output Software | | For information about this and other utilities visit www.maxoutput.com | | =============================================================================== | | SendMsg {switches} [SearchStr] {Message} {wParam} {lParam} | | | | Switches: | | /CLASS or /TEXT Search window classnames/titles | | /NOWAIT Post message without waiting for result | | /[IN]VISIBLE Include only [in]visible windows | | /TOP Include only top-level windows | | /PAUSExx Pause xx seconds after sending each message | | /EXAMPLES Show example command lines | | | | SearchStr String to search for. Wildcards ? and * allowed | | SearchStr is NOT case sensitive | | Use "double quotations" if SearchStr contains spaces | | Message Message to send. If omitted, find windows only | | Constants in CONST.TXT [+/- offset] allowed | | wParam wParam parameter. If omitted, use "0" as default | | lParam lParam parameter. If omitted, use "0" as defaultCOPY |
| Example command lines | | | | SENDMSG /CLASS #32770 WM_NULL+0 0 0 | | Sends the WM_NULL+0 message to all windows with class name #32770 | | | | SENDMSG "Microsoft Word*" WM_CLOSE | | Sends the WM_CLOSE message to all Microsoft Word* windows | | | | SENDMSG "My Application" WM_USER+50 47 32 | | Sends the WM_USER+50 message to My Application window | | | | SENDMSG /TEXT /VISIBLE M* | | List all visible windows with title beginning with M | | | | SENDMSG * | | List all windows | | | | SENDMSG /VISIBLE /TOP * | | List all visible top-level windowsCOPY |
如要发送消息,CONST.TXT 必须在程序目录,列举窗口不需要 CONST.TXT。 |