|
#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
好像无效啊 |
|