Opened 13 years ago
Closed 11 years ago
#2105 closed Bug (Fixed)
Odd behavior Hex()
Reported by: | anonymous | Owned by: | Jon |
---|---|---|---|
Milestone: | 3.3.9.21 | Component: | AutoIt |
Version: | 3.3.8.0 | Severity: | None |
Keywords: | Cc: |
Description
AutoIt 3.3.8.0 XP SP3
I have recompiled a script using latest AutoIt version.
Some Hex() calls are behaving differently.
Eg Using Hex after reading value from RegRead()
Using Hex after reading value from DLLCall()
Small example below.
Thanks
Steve
$DecimalNumber = 1862402120
RegDelete("HKEY_LOCAL_MACHINE\SOFTWARE\AutoIt v3","deleteme") ; clean start
ConsoleWrite("$DecimalNumber >" & $DecimalNumber & "<" & @LF)
RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\AutoIt v3","deleteme","REG_DWORD",$DecimalNumber)
$fromRegistry = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\AutoIt v3","deleteme")
; returns number as a decimal number
ConsoleWrite("$fromRegistry >" & $fromRegistry & "<" & @LF)
If $DecimalNumber = $fromRegistry Then
ConsoleWrite($DecimalNumber & " = " & $fromRegistry & @LF)
Else
ConsoleWrite($DecimalNumber & " <> " & $fromRegistry & @LF)
EndIf
; now do some HEX functions on it
ConsoleWrite("Hex($DecimalNumber) >" & Hex($DecimalNumber) & "<" & @LF)
ConsoleWrite("Hex($fromRegistry) >" & Hex($fromRegistry) & "<" & @LF)
Attachments (0)
Change History (4)
comment:1 Changed 13 years ago by anonymous
comment:2 Changed 13 years ago by Valik
- Resolution set to No Bug
- Status changed from new to closed
You want the forum, not the issue tracker.
comment:3 Changed 11 years ago by Jpm
- Resolution No Bug deleted
- Status changed from closed to reopened
In fact the problem come from regread with REG_DWORD type
comment:4 Changed 11 years ago by Jon
- Milestone set to 3.3.9.21
- Owner set to Jon
- Resolution set to Fixed
- Status changed from reopened to closed
Fixed by revision [8990] in version: 3.3.9.21
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.
Results from sample script
$DecimalNumber >1862402120<
$fromRegistry >1862402120<
1862402120 = 1862402120
Hex($DecimalNumber) >6F020048<
Hex($fromRegistry) >41DBC08012000000<