Jump to content
Sign in to follow this  
electrico

Problems with RegWrite REG_BINARY

Recommended Posts

electrico

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

Share this post


Link to post
Share on other sites
trancexx

What is written to console when you run this:

ConsoleWrite(Binary("10 00 00 00") & @CRLF)

♡♡♡

.

eMyvnE

Share this post


Link to post
Share on other sites
ProgAndy

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

Share this post


Link to post
Share on other sites
electrico

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?

Share this post


Link to post
Share on other sites
JamesDover

Try This

RegWrite("HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings", "TEST", "REG_BINARY", "3130203030203030203030")

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.