Sign in to follow this  
Followers 0
Rad

Registry Keys Are Anoying...

4 posts in this topic

Func RegistryWriteDir()
    msgbox(0,"input",GUICtrlRead($DirWinInput))
    RegWrite("HKEY_CURRENT_USER\Software","Rad",-1,GUICtrlRead($DirWinInput))
    msgbox(0,"registry",RegRead("HKEY_CURRENT_USER\Software","Rad"))
EndFunc

Why doesnt this work? I got the first message box to say "Blahblah", but then the second one is ""... I dont really understand it (at all) it should work though, shouldnt it?

Share this post


Link to post
Share on other sites



from help

AutoIt supports registry keys of type REG_BINARY, REG_SZ, REG_MULTI_SZ, REG_EXPAND_SZ, and REG_DWORD.

you should try replacing the "-1" with "REG_SZ"

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

Oh thanks I didnt know what those meant and it doesnt say (Or I overlooked them), besides they were [optional] and usually -1 is default which I figured would be fine... guess not because it works now! :think:

Share this post


Link to post
Share on other sites

.. guess not because it works now! :think:

good... because i was just guessing

8)


NEWHeader1.png

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  
Followers 0