找回密码
 注册
搜索
[新手上路]批处理新手入门导读[视频教程]批处理基础视频教程[视频教程]VBS基础视频教程[批处理精品]批处理版照片整理器
[批处理精品]纯批处理备份&还原驱动[批处理精品]CMD命令50条不能说的秘密[在线下载]第三方命令行工具[在线帮助]VBScript / JScript 在线参考
查看: 25895|回复: 3

[其他] SendMsg - 发送消息和列举窗口

[复制链接]
发表于 2009-5-2 20:31:12 | 显示全部楼层 |阅读模式
官网: http://www.maxoutput.com/SendMsg.html
下载: http://bcn.bathome.net/s/tool/index.html?key=SendMsg
  1. ===============================================================================
  2.     SendMsg v2.1 - Window Message Poster - (c) 2005 Maximum Output Software
  3.      For information about this and other utilities visit www.maxoutput.com
  4. ===============================================================================
  5. SendMsg {switches} [SearchStr] {Message} {wParam} {lParam}

  6.   Switches:
  7.      /CLASS or /TEXT   Search window classnames/titles
  8.      /NOWAIT       Post message without waiting for result
  9.      /[IN]VISIBLE  Include only [in]visible windows
  10.      /TOP          Include only top-level windows
  11.      /PAUSExx      Pause xx seconds after sending each message
  12.      /EXAMPLES     Show example command lines

  13.   SearchStr   String to search for.  Wildcards ? and * allowed
  14.               SearchStr is NOT case sensitive
  15.               Use "double quotations" if SearchStr contains spaces
  16.   Message     Message to send.  If omitted, find windows only
  17.               Constants in CONST.TXT [+/- offset] allowed
  18.   wParam      wParam parameter.  If omitted, use "0" as default
  19.   lParam      lParam parameter.  If omitted, use "0" as default
复制代码
  1. Example command lines

  2. SENDMSG /CLASS #32770 WM_NULL+0 0 0
  3. Sends the WM_NULL+0 message to all windows with class name #32770

  4. SENDMSG "Microsoft Word*" WM_CLOSE
  5. Sends the WM_CLOSE message to all Microsoft Word* windows

  6. SENDMSG "My Application" WM_USER+50 47 32
  7. Sends the WM_USER+50 message to My Application window

  8. SENDMSG /TEXT /VISIBLE M*
  9. List all visible windows with title beginning with M

  10. SENDMSG *
  11. List all windows

  12. SENDMSG /VISIBLE /TOP *
  13. List all visible top-level windows
复制代码
如要发送消息,CONST.TXT 必须在程序目录,列举窗口不需要 CONST.TXT。

评分

参与人数 1PB +10 收起 理由
pusofalse + 10 感谢分享

查看全部评分

发表于 2014-9-3 17:07:29 | 显示全部楼层
这个可以在局域网中使用发消息?如能,怎么打命令>..
发表于 2015-2-19 22:06:34 | 显示全部楼层
看不太懂啊
发表于 2015-3-22 21:00:48 | 显示全部楼层
官网:
下载: 如要发送消息,CONST.TXT 必须在程序目录,列举窗口不需要 CONST.TXT。

[ 本帖最后由 tir ...
tireless 发表于 2009-5-2 20:31



    请问,如果用这个工具去刷新任务栏托盘,该如何写命令?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|批处理之家 ( 渝ICP备10000708号 )

GMT+8, 2026-3-17 00:58 , Processed in 0.019459 second(s), 9 queries , File On.

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表