sksbir Posted May 14, 2009 Share Posted May 14, 2009 (edited) with autoit v3.3.0.0, this change happens: Changed: RegRead() and RegWrite() no longer use hex strings for REG_BINARY types - native binary datatypes are enforced. Minor change, big effects. ok for regwrite, it's easy to scan source code and replace for example : regwrite(....,"REG_BINARY","0010002") with regwrite(....,"REG_BINARY",binary("0x0010002")) But for regread, how to be sure to make all changes that are needed ? scanning all regread order... and then ? guess that it retrieves binary ? and what happens if you have not the registry entry on the PC you are using for writing autoit source code ? and the adaptation will look sooo fun: something like : regread("key","value") ---> stringmid(string(regread("key","value")),2) (I'm even not sure this is good) And this minor change is for what ?? who knows.... I like Autoit... yes, really a good tool. But sometimes, I hate it... guess why... Edited May 14, 2009 by sksbir Link to comment Share on other sites More sharing options...
ProgAndy Posted May 14, 2009 Share Posted May 14, 2009 (edited) Just Hex is enough Hex(Binary("0x1234567890ABCDEF")) --> $value = Hex(RegRead("KEY", "VALUE")) $value = RegRead("KEY", "VALUE") If @extended==3 Then $value = Hex($value) ; for Binary data, @extended is 3 Edited June 25, 2015 by Jon *GERMAN* [note: you are not allowed to remove author / modified info from my UDFs]My UDFs:[_SetImageBinaryToCtrl] [_TaskDialog] [AutoItObject] [Animated GIF (GDI+)] [ClipPut for Image] [FreeImage] [GDI32 UDFs] [GDIPlus Progressbar] [Hotkey-Selector] [Multiline Inputbox] [MySQL without ODBC] [RichEdit UDFs] [SpeechAPI Example] [WinHTTP]UDFs included in AutoIt: FTP_Ex (as FTPEx), _WinAPI_SetLayeredWindowAttributes Link to comment Share on other sites More sharing options...
sksbir Posted May 14, 2009 Author Share Posted May 14, 2009 Just Hex is enough Thanks progAndy. You saved my day I still have to scan all my regread orders, but now, it will be more convenient to do the changes. Link to comment Share on other sites More sharing options...
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