Sign in to follow this  
Followers 0
Mecano

Registry key REG_Qword

3 posts in this topic

#1 ·  Posted (edited)

Hey there,

I converted a registry key with reg2au3

This is the registry key:

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\MadDog\MadDog\MadDog]
"lastdog"=hex(B):f9,03,01,00,00,00,00,00
"lastcat"=hex(B):6c,21,08,00,00,00,00,00
"maxdog"=dword:0001869f
"maxcat"=dword:00989680

Converterd to au3:

RegWrite("HKEY_CURRENT_USER\MadDog\MadDog\MadDog", "maxdog", "REG_DWORD", "99999")
RegWrite("HKEY_CURRENT_USER\MadDog\MadDog\MadDog", "maxcat", "REG_DWORD", "10000000")

But lastdog and lastcat are REG_Qword values

I tried:

$val= "hex(B):f9,03,01,00,00,00,00,00"
RegWriteRegWriteRegWriteRegWrite("HKEY_CURRENT_USER\MadDog\MadDog\MadDog", "lastdog",   "REG_QWORD", $val )

but no luck

Any one

Thanks in advance

Edited by Mecano

Share this post


Link to post
Share on other sites



Try this:

RegWrite("HKEY_CURRENT_USER\MadDog\MadDog\MadDog","lastdog","REG_SZ",'hex(B):f9,03,01,00,00,00,00,00')
RegWrite("HKEY_CURRENT_USER\MadDog\MadDog\MadDog","lastcat","REG_SZ",'hex(B):6c,21,08,00,00,00,00,00')
RegWrite("HKEY_CURRENT_USER\MadDog\MadDog\MadDog","maxdog","REG_DWORD",'0001869f')
RegWrite("HKEY_CURRENT_USER\MadDog\MadDog\MadDog","maxcat","REG_DWORD",'00989680')

#include <ByteMe.au3>

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Nope didn't work but you pointed me to the right direction

RegWrite("HKEY_CURRENT_USER\MadDog\MadDog\MadDog","lastdog","REG_QWORD",'66553')
RegWrite("HKEY_CURRENT_USER\MadDog\MadDog\MadDog","lastcat","REG_QWORD",'532844')
RegWrite("HKEY_CURRENT_USER\MadDog\MadDog\MadDog","maxdog","REG_DWORD", "99999")
RegWrite("HKEY_CURRENT_USER\MadDog\MadDog\MadDog","maxcat","REG_DWORD", "10000000")

What I did was regedit.exe --> lookup the key --> REG_QWORD --> decimal value

Thanks

Greetings,

Mecano

Edited by Mecano

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0