| View previous topic :: View next topic |
| Author |
Message |
geicsge Newbie
Joined: 27 Feb 2009 Posts: 19
|
Posted: Mon Oct 05, 2009 10:53 am Post subject: QWORD |
|
|
How to convert a QWORD entry from a REG file in the @regread() format:
%s =@regread(HCU,Control Panel\Appearance\New Schemes\0\Sizes\0,Size #5)
returns 15
In the REG file we have:
"Size #5"=hex(b):0f,00,00,00,00,00,00,00
| Code: |
%a ="0f,00,00,00,00,00,00,00"
# Remove ,
%a =@strrep(%a,",",,EXACT,ALL)
# Reverse
%a =@substr(%a,15,16)@substr(%a,13,14)@substr(%a,11,12)@substr(%a,9,10)@substr(%a,7,8)@substr(%a,5,6)@substr(%a,3,4)@substr(%a,1,2)
# HEX to DEC
%a =@sum($%a)
|
%a =15 now... |
|
| Back to top |
|
 |
Aslan Valued Contributor


Joined: 31 May 2001 Posts: 589 Location: Memphis, TN USA
|
Posted: Thu Oct 08, 2009 12:36 am Post subject: |
|
|
In the reg it should read "0x0000000f"
I forget why its "Size #5"=hex(b):0f,00,00,00,00,00,00,00 in an exported reg file.
the decimal equivalent is "15"
| Code: | %a = @hex(15,8)
%b = @sum($%a)
info %a@cr()%b
exit |
What exactly are you looking for or trying to do??? |
|
| Back to top |
|
 |
vdsalchemist Admin Team

Joined: 23 Oct 2001 Posts: 1448 Location: Florida, USA
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|