Jump to content

Read Reg


Go to solution Solved by Gianni,

Recommended Posts

@Chimp

i ran you script and it display all blank feilds.

what i am trying to accomplish is to read certain key values in all of the keynames.

@JohnOne

Im getting this error:

"C:Rules.au3" (23) : ==> Array variable has incorrect number of subscripts or subscript dimension range exceeded.:

post-75109-0-57225900-1406921490.png

Edited by antmar904
Link to comment
Share on other sites

#include <array.au3>
Local $var = "", $SubKeys[1][3]
Local $Key = "HKLM\Software\BeyondTrust\SD\Applications\Rules\Machine"
For $i = 1 To 100
    $var = RegEnumKey($Key, $i)
    If @error <> 0 Then ExitLoop
    ReDim $SubKeys[UBound($SubKeys) + 1][3] ; <<<<<<<<<<<
    $SubKeys[$i][0] = $var
    $SubKeys[$i][1] = RegRead($Key & "\" & $SubKeys[$i][0], "")
    $SubKeys[$i][2] = RegRead($Key & "\" & $SubKeys[$i][0], "gponame")
    $SubKeys[0][0] += 1
Next
_ArrayDisplay($SubKeys)

AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

Link to comment
Share on other sites

_ArrayToString() in previous versions of AutoIT allows only the use of 1D array

maybe you have not one of the last versions of AutoIt

... you could build the desired string within the For - Next loop instead of populating the array...

post an example of how would you like to format the output in your MsgBox

Edited by Chimp

 

image.jpeg.9f1a974c98e9f77d824b358729b089b0.jpeg Chimp

small minds discuss people average minds discuss events great minds discuss ideas.... and use AutoIt....

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...