Registry query

Deploying to Windows? Utilizing VB Script execution? This is the place to ask Windows-specific questions.

Moderators: heatherlaine, Klaus, FourthWorld, robinmiller, kevinmiller

Post Reply
rblackmore245
Posts: 67
Joined: Fri Jun 12, 2015 9:42 am

Registry query

Post by rblackmore245 » Fri Jan 12, 2018 10:34 am

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

shaosean
Posts: 902
Joined: Thu Nov 04, 2010 7:53 am

Re: Registry query

Post by shaosean » Fri Jan 12, 2018 10:59 am

put format("%d", 0x7eba)

rblackmore245
Posts: 67
Joined: Fri Jun 12, 2015 9:42 am

Re: Registry query

Post by rblackmore245 » Fri Jan 12, 2018 11:27 am

Only problem is it is returned not as HEX but as a string

Thierry
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 583
Joined: Wed Nov 22, 2006 3:42 pm
Location: France
Contact:

Re: Registry query

Post by Thierry » Fri Jan 12, 2018 11:54 am

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 )
Thierry Douez - https://sunny-tdz.com
Pourquoi tant de notes lorsqu'il suffit de jouer les plus belles... [Barbara]

Post Reply

Return to “Windows”