Run('rundll32.exe shell32.dll,Control_RunDLL Desk.cpl,,0')
WinWaitActive("显示 属性")
Send("!d")
WinWaitActive("桌面项目", "")
Send("^{tab}")
$list=ControlGetHandle("桌面项目",'','SysListView321')
IF _GUICtrlListView_GetItemChecked($list, 0) then
MsgBox(0,"bar","该列表框第一项状态为选中",10)
Else
MsgBox(0,"bar","该列表框第一项状态为未选中",10)
EndIf
_GUICtrlListView_SetItemChecked($list, 0,True)
Sleep(2000)
_GUICtrlListView_SetItemChecked($list, 0,False)多看帮助
页:
1
[2]