Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

RegWrite Help

$
0
0
Hi i need to change value to a DWORD into Windows registry, but the value that i must insert is expressed as hexadecimal (editing File.Reg is wrote hex:..... )

That I want realize is: Read original value of DWORD "PageSpaceControlSizer" and record the DATA on file  (overwriting if already exist file) and Then replace the value with an other


After record value I replace DATA with this value

[HKEY_USERS\S-1-5-21-1910003253-1007278638-1873172583-500\Software\Microsoft\Windows\CurrentVersion\Explorer\Modules\GlobalSettings\Sizer]

"PageSpaceControlSizer"=hex:3F,20,00,00,01,00,00,00,00,00,00,00,a9,03,00,00



Then when I press SHIFT-ESC HotKeySet("+{ESC}", "Default")
read from file and come back to original value of "PageSpaceControlSizer"


The problem is that when i read value. using command

$key= RegRead("HKEY_USERS\S-1-5-21-1910003253-1007278638-1873172583-500\Software\Microsoft\Windows\CurrentVersion\Explorer\Modules\GlobalSettings\Sizer", "PageSpaceControlSizer")

the value of $key is: 0xfb00000001000000000000005d030000

but if i use RegWrite ( "keyname" [,"valuename" [, "type" [, value]]] )



RegWrite("HKEY_USERS\S-1-5-21-1910003253-1007278638-1873172583-500\Software\Microsoft\Windows\CurrentVersion\Explorer\Modules\GlobalSettings\Sizer", "PageSpaceControlSizer, "REG_DWORD", "0x3F200000010000000000000a9030000")

proved aslo with options

REG_SZ
REG_EXPAND_SZ
REG_BINARY
and other..

and the value is not inserted correctly.
How can insert value reported into file.REG when i backup it using Regedit ?

How i'm wronging??

Thank you

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>