Rad Posted May 3, 2006 Posted May 3, 2006 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?
Valuater Posted May 3, 2006 Posted May 3, 2006 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)
Rad Posted May 3, 2006 Author Posted May 3, 2006 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!
Valuater Posted May 3, 2006 Posted May 3, 2006 .. guess not because it works now! good... because i was just guessing8)
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now