Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#1555 closed Bug (Works For Me)

Regwrite Reg_Dword does not write correct value

Reported by: Emiel Wieldraaijer Owned by:
Milestone: Component: AutoIt
Version: Severity: None
Keywords: RegWrite Reg_Dword Cc:


Hi All,

The following code does not write hex ffffffff but hex 7fffffff.

If @OSArch = "X64" Then
	$HKCU &= "64"

Msgbox (64, "HEX", Hex(4294967295))

RegWrite($HKCU & "\Software\Microsoft\Test", "Test", "REG_DWORD", "4294967295")
MsgBox(64, "Information",  RegRead($HKCU & "\Software\Microsoft\Test\", "Test"))

Attachments (0)

Change History (4)

comment:1 Changed 14 years ago by Emiel Wieldraaijer

If i use 2147483647 (which is the result of the above) instead of 4294967295 it return the correct value. So it looks like it only happens when using 4294967295 (FFFFFFFF)

comment:2 Changed 14 years ago by Emiel Wieldraaijer

When using 0xFFFFFFFF it writes the correct Hex Value

comment:3 Changed 14 years ago by Jpm

  • Resolution set to Works For Me
  • Status changed from new to closed

Just extra quote

RegWrite($HKCU & "\Software\Microsoft\Test", "Test", "REG_DWORD", 4294967295)

and it works "fine" at least under Win7 X86

comment:4 Changed 14 years ago by Emiel Wieldraaijer

Without the "" it works perfect

but if you read the help the "" are always used

or there must be a modification to the helpfile or this is still a bug on X64

Help File Example

; Write a single REG_SZ value
RegWrite("HKEY_CURRENT_USER\Software\Test", "TestKey", "REG_SZ", "Hello this is a test")

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

as closed The ticket will remain with no owner.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.