rlemoine002 Posted August 9, 2017 Posted August 9, 2017 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
Moderators JLogan3o13 Posted August 9, 2017 Moderators Posted August 9, 2017 (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 August 9, 2017 by JLogan3o13 "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum!
rlemoine002 Posted August 9, 2017 Author Posted August 9, 2017 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.
Moderators JLogan3o13 Posted August 9, 2017 Moderators Posted August 9, 2017 Make sure your output is what you expect, without the x you're not going to get the hex you would think. "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum!
rlemoine002 Posted August 11, 2017 Author Posted August 11, 2017 (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 August 11, 2017 by rlemoine002 added example
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