如何获取IE选项设置TreeView中Checkbox状态
要查看Internet选项->高级中的某一项是否启用,用_GUICtrlTreeView_GetChecked好像无法获取?是不是有其他解决方法.Run("control inetcpl.cpl")WinWait("Internet 属性")
$Tab=ControlGetHandle("Internet 属性","","")
_GUICtrlTab_ClickTab($Tab,6)
$TreeView=ControlGetHandle("Internet 属性","","")
$Item=_GUICtrlTreeView_FindItem($TreeView,"浏览")
$UTF8_Item=_GUICtrlTreeView_GetLastChild($TreeView,$Item)
_GUICtrlTreeView_EnsureVisible($TreeView,$UTF8_Item)
MsgBox(0,"",_GUICtrlTreeView_GetChecked($TreeView,$UTF8_Item))
直接读取注册表可以吗?
RegRead("HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings", "UrlEncoding") ; 1 - 禁用, 0或无 - 启用 试了一下,确实无论是否选中都是返回false
很纳闷,看谁能解答下 _GUICtrlListView_GetItemState
-----------------------------------------------------
Retrieves the state of a listview item
#Include <GuiListView.au3>
_GUICtrlListView_GetItemState($hWnd, $iIndex, $iMask) $iMask------$LVIS_SELECTED - The item is selected 5# lynfr8
这个只能获取该项当前是否被选中,跟_GUICtrlTreeView_GetSelected 效果一样 不知道是不是个bug,你提交到建议区给大老看看吧 对我没太大帮助,郁闷!
页:
[1]