Jump to content

Problems with RegWrite REG_BINARY


Recommended Posts

Greetings! Can anybody help me with my (may be stupid) question.

Using function RegWrite("HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings", "TEST", "REG_BINARY", "10 00 00 00") i always get the 31 instead of 1 displayed in binary value inside regedit, 30 instead of 0, and accordingly, 39 instead of 9. Can anybody describe me how to CORRECTLY write REG_BINARY values in to registry, so they will appear like simple 10 00 00 00 and so on.. Actually tired scanning google.. ;)^_^

post-49033-1241003584_thumb.jpg

Link to comment
Share on other sites

Binary Data in AutoIt is representet as this:

$Bin = Binary("0x10000000")

*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

What is written to console when you run this:

ConsoleWrite(Binary("10 00 00 00") & @CRLF)
Thank you for quick replying! Actually I am a newbie and I dont know how to use ConsoleWrite, as it does nothing. I red there is something about STDOUT, but this is dark picture for me. Can you explain pls more details?
Link to comment
Share on other sites

  • 2 weeks later...

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...