本文共 839 字,大约阅读时间需要 2 分钟。
#include;获取窗口句柄$handle = WinGetHandle(".NET Reflector 6")WinActivate($handle);获取控件句柄;$control = ControlGetHandle($handle,"","WindowsForms10.SysListView32.app.0.232467a_r11_ad11");获取列表中List数目$count = ControlListView($handle,"",$control,"GetItemCount")for $i = 1 to 10 ;获取位置信息 $x = _GUICtrlListView_GetItemPositionX($control, $i-1) $y = _GUICtrlListView_GetItemPositionY($control, $i-1) ControlClick($handle,"", $control,"right",1, $x, $y) ControlSend($handle,"",$control,"{down 2}{enter}") WinWait("Save As") WinWaitActive("Save As") $handle2 = WinGetHandle("Save As") ControlSetText($handle2,"", "Edit1", "C:\Users\chenpassion\Desktop\Autoit\pic\" & $i & ".png") ControlClick($handle2,"","Button1") WinWaitClose("Save As") ControlSend($handle,"",$control,"{down}")Next
autoit最好的,对窗口,控件进行操作的例子
转载地址:http://gjvwn.baihongyu.com/