in my project, i need to read some information stored in system registry. i tried the method mentioned in TC help, but it just doesn't work.
I wanna read something stored in HKEY_LOCAL_MACHINE\SOFTWARE\xxx
as the default rootkey for Storages.Registry() is HKEY_CURRENT_USER, so i need to do some changes. my code is like this:
set w = Storages.Registry("SOFTWARE\xxx", 80000002)
the result is that the above code can not locate the section of "xxx" correctly.
Can u tell me why? thanks a lot.
Hi buddy, u can call me BIGBUG!
Please replace $80000002 with &h80000002. The value of the second parameter of the Storages.Registry method is hexadecimal, so it is specifed differently in different scripting languages:
JScript, C++Script, C#Script 0x80000000
We will improve the corresponding help topic so that this problem is noted. Sorry that it misled you.
Save on AutomatedQA Products
Thank you very much for ur reply.
You are welcome.