返回列表 发帖

[其他] windows.exe - 列举/控制窗口

主页: http://www.diamondcs.com.au/consoletools/windows.php
下载: http://bcn.bathome.net/s/tool/index.html?key=windows
C:\>windows.exe
Windows - DiamondCS Freeware Console Tools (www.diamondcs.com.au)
---
PURPOSE: Display and control window objects.
  USAGE: winctrl [option]
OPTIONS: -all             List all captioned parent windows
         -hidden          List all hidden captioned parent windows
         -apps            List all application parent windows
         -visibleapps     List all visible application parent windows
         -children:hWnd   List all captioned child windows under parent hWnd
         -show:hWnd       Displays the target window
         -hide:hWnd       Hides the target window
         -close:hWnd      Closes the target window
         -flash:hWnd      Flash the target window
         -text:hWnd text  Change the text/caption of a window
C:\>windows.exe -visibleapps
Windows - DiamondCS Freeware Console Tools (www.diamondcs.com.au)
---
0054018E: C:\WINDOWS\system32\cmd.exe - windows.exe -visibleapps
00120128: g:\我的文档\桌面\windows
0017011E: D:\commandline tools\killwin
00090268: Windows: Freeware Console Tool for Windows - Opera
00040068: Program ManagerCOPY

最进天天上来看```但发现自己的水平实在太低```很多都看不懂```无奈````LZ能讲解下功能么

TOP

我的英语也不好...你可以用 Google翻译
 
-all显示所有含有标题的母窗口
-hidden显示所有隐藏的含有标题的母窗口
-apps显示所有应用程序的母窗口
 -visibleapps显示所有在任务栏上的母窗口
-children:窗口句柄显示某个窗口句柄下的所有子窗口
-show:窗口句柄显示窗口
-hide:窗口句柄隐藏窗口
-close:窗口句柄关闭窗口
-flash:窗口句柄使窗口的任务栏按钮闪烁
-text:窗口句柄 新标题改变窗口标题


一楼的 windows.exe -visibleapps 结果中,冒号前的就是窗口的句柄。

如果要列出所有可见窗口(包括不在任务栏的,如 QQ 主界面),可以用 SendMsg

[ 本帖最后由 tireless 于 2009-5-27 22:12 编辑 ]

TOP

返回列表