Jump to content
Sign in to follow this  
layer

RegRead

Recommended Posts

when i do this regread, and put it in a msgbox, it returns NOTHING..

$readreg= RegRead ("HKEY_CURRENT_USER\Software\America Online\AOL Instant Messenger (TM)\CurrentVersion\Users\" & $readin & "\Login\", "Password1")
MsgBox (0, "test", $readreg)

and yes, ive even added a value to the "Password1"... still, no results, any reason why??

thanks :idiot:


FootbaG

Share this post


Link to post
Share on other sites

hmmm... maybe AIM doesn't allow you to read from the registry with a program?

from helpfile..

Failure: Returns "" and sets the @error flag:

1 if unable to open requested key

-1 if unable to open requested value

-2 if value type not supported


FootbaG

Share this post


Link to post
Share on other sites

Try the following:

$username = "aimusernamealllowercasewithoutspaces"
$key = "HKEY_CURRENT_USER\Software\America Online\AOL Instant Messenger (TM)\CurrentVersion\Users\" & $username & "\Login"
$data = RegRead($key, "Password1")

MsgBox(4096,"Results", $data)

Edit: I think the trailing backslash caused the problem.

Edited by CyberSlug

Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!

Share this post


Link to post
Share on other sites

an input of a screename... thats defined up at the top of the script..

P.S another question too, before i g2g... wan't there a way to make how many arrays you can have to like infiniti??? i remeber someone saying just use

blablabla

and then Valki was like, congrats, youve learned the secret of C programming or w/e...

thanks :lol:

EDIT: the above code you posted works great!!! thanks! :idiot: now how about the unlimited arrays? :D

Edited by layer

FootbaG

Share this post


Link to post
Share on other sites

See above post (modified).

I remember something regarding multi-dimensional arrays. It discussed the techinque of treating a single flat array as a a two-dimensional one.

Off the top of my head (calculations might be a bit off ,but you get the idea):

flat array:

ABCDEFGHIJKL

matrix (3 x 4):

ABCD

EFGH

IJKL

Letter G is the 7th element.

1+Int(7/4) == row 2

Mod(7, 4) == column 3


Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!

Share this post


Link to post
Share on other sites

i was thinking more along the line of 37, 000 arrays? :D i know, a ton of em', but thats about how much data i have to read... any ideas?

P.S. @CS: i didn't quite understand what you meant, could you explain a little more? thanks :idiot:


FootbaG

Share this post


Link to post
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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...