找回密码
 加入
搜索
查看: 1676|回复: 0

ControlTreeView 如何展开注册表 请教。。

[复制链接]
发表于 2008-11-4 12:21:14 | 显示全部楼层 |阅读模式
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 695, 470, 355, 246)
$Label1 = GUICtrlCreateLabel("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Main", 16, 80, 484, 17)
GUICtrlSetFont(-1, 10, 800, 4, "宋体")
GUICtrlSetColor(-1, 0x0000FF)
GUICtrlSetCursor (-1, 0)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
        $nMsg = GUIGetMsg()
        Switch $nMsg
                Case $GUI_EVENT_CLOSE
                        Exit

Case $Label1

Run("C:\WINDOWS\regedit.exe")

$abc=StringSplit(GUICtrlRead($Label1),"\")

Run("C:\WINDOWS\regedit.exe")
WinWait("注册表编辑器","")

For $x = 1 to $abc[0]
    ControlTreeView ( "注册表编辑器", "", "[Class:SysTreeView321]",  "Expand",$abc[$x])


Next


        EndSwitch
WEnd

好像无效啊
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-6-26 08:28 , Processed in 0.078761 second(s), 24 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表