Sign in to follow this  
Followers 0
rlemoine002

Editing Registry key values

5 posts in this topic

#1 ·  Posted

I'm having trouble with editing registry keys.  When I try to compile, I get multiple syntax errors, but only on lines that have dwords that have letters in them, such as: RegWrite("HKEY_CURRENT_USER\Console", "ColorTable12", "reg_dword", 000000ff).  This will throw a syntax error.

Other lines, such as: RegWrite("HKEY_CURRENT_USER\Console", "HistoryBufferSize", "reg_dword", 00000032) are OK.

Why can't "lettered" values be used.  The lettered values were specified to be used by a customer.

Is there something that I'm doing wrong?

Thank you in advance

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Have you tried putting quotes around the last parameter?

Edit: actually it looks like you're entering 000000ff rather than 0x00000ff, this works with no quotes

Edited by JLogan3o13

√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites

#3 ·  Posted

That did the job.  I was using the AutoIt Help, and the value did not use quotes.  Everything else did, so I figured that the help file was correct and didn't put any quotes.

Anyway, it compiled just fine.

Thank you for your help.

Share this post


Link to post
Share on other sites

#4 ·  Posted

Make sure your output is what you expect, without the x you're not going to get the hex you would think.


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

Using Regedit, I checked the new registry values and all worked well.  Now I'm trying to display specified registry keys using consolewrite, but it is throwing an error.  I am running the script from a DOS prompt, and would like to display the values in dos also.  Is this possible?

Local $sVar = RegRead("HKEY_CURRENT_USER\Console", "FullScreen")
ConsoleWrite($MB_SYSTEMMODAL, "The new values are: ", $sVar)

Edited by rlemoine002
added example

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