Page 1 of 1

Registry query

Posted: Fri Jan 12, 2018 10:34 am
by rblackmore245
I am trying to read a Dword value from the registry I can get the value out but I an unable to convert it into a readable number.

I am using:

put queryRegistry("HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Software\ClientID")
hex.JPG
Which outputs in livecode as encoded text how do I convert this back into a integer

Re: Registry query

Posted: Fri Jan 12, 2018 10:59 am
by shaosean
put format("%d", 0x7eba)

Re: Registry query

Posted: Fri Jan 12, 2018 11:27 am
by rblackmore245
Only problem is it is returned not as HEX but as a string

Re: Registry query

Posted: Fri Jan 12, 2018 11:54 am
by Thierry
rblackmore245 wrote:
Fri Jan 12, 2018 11:27 am
Only problem is it is returned not as HEX but as a string
Hi,

One trick is to add 0 to your string.

Code: Select all

put queryRegistry("HKEY_LOCAL_MACHINE\SOFTWARE\.......") into theValue
put format( "%d", theValue + 0 )