[au3]For $net1 = 1 To 100000000000
$var = RegEnumKey("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services", $net1)
If @error <> 0 Then ExitLoop
If $var="{6302B780-51C5-431A-9FEF-8D174E4E1B63}" Then MsgBox(0,"",$var)
Next[/au3]
最好使用 While WEnd
服了某些人了.
[au3]#include<array.au3>
Dim $R[2][2]
For $net1 = 1 To 100000000000
$var = RegEnumKey("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services", $net1)
If @error <> 0 Then ExitLoop
$R[$net1][0]="第"&$net1&"键"
$R[$net1][1]=$var
ReDim $R[UBound($R)+1][2]
Next
_ArrayDisplay($R,"")[/au3]