我必须从外部程序 Listview 控件中选择所有项目。有谁知道我怎么能做到这一点?我尝试使用 SendCommand,但失败了。
在 AutoIt 我可以这样做:
ControlListView("Title", "", "[CLASS:SysListView32; INSTANCE:1]", "Selectall")
谢谢!
You'll need to send a message to the control using with Win32 SendMessage
API.
There is an example of exactly this right here.
You will of course have to find the window handle of the control, provided you know the class and window name (which you can find with Spy++) you can probably do it with FindWindowEx
.