使用AutoIt获取所有打开的窗口的列表 [英] Get a list of all open windows using AutoIt

查看:843
本文介绍了使用AutoIt获取所有打开的窗口的列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图摆脱所有窗口上的最小化,最大化和关闭按钮.谷歌搜索我发现了这一点:

I'm trying to get rid of my minimize, maximize and close buttons on all windows. Googling around I found this:

$h = WinGetHandle("[CLASS:Notepad]")

$iOldStyle = _WinAPI_GetWindowLong($h, $GWL_STYLE)
$iNewStyle = BitXOr($iOldStyle, $WS_SYSMENU)
_WinAPI_SetWindowLong($h, $GWL_STYLE, $iNewStyle)
_WinAPI_ShowWindow($h, @SW_SHOW)

这很好用,所以现在我只需要使用此代码遍历所有窗口,就可以了.如何获得所有系统中的HWND ?

This works fine, so now I only need to iterate over all windows with this code, and I'm done. How do I get a list of all HWNDs in the system?

推荐答案

您可以使用 查看全文

登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆