06-05-2020, 01:38 PM
Hi Gintaras,
I am trying to retrieve data from the registry in QM3, can't seem to get the actual value that I can in QM2.
QM2 Code was:
/ Macro182
;; HKEY_CURRENT_USER\Software\GinDi\QM2\Test
str rkey = "Software\GinDi\QM2\Test\"
str name = "ADD1"
str s1
rget s1 "ADD1" rkey
out s1
;; Output:
;; 1051 FAIRFAX LN
___________________________________________
QM3 Code is:
{
string userRoot = "HKEY_CURRENT_USER";
string subkey = @"Software\GinDi\QM2\Test\";
string keyName = userRoot + "\\" + subkey;
string name = "ADD1";
string data = "ADD1";
Print(ARegistry.GetString(out data, name, keyName));
}}
__________________________________________
*The Key is "Test" which is under "HKEY_CURRENT_USER\Software\GinDi\QM2\" and String Value = ADD1
*The data is "1051 FAIRFAX LN", but the code is returning, False
Any help is greatly appreciated. Thanks,
ScottF
I am trying to retrieve data from the registry in QM3, can't seem to get the actual value that I can in QM2.
QM2 Code was:
/ Macro182
;; HKEY_CURRENT_USER\Software\GinDi\QM2\Test
str rkey = "Software\GinDi\QM2\Test\"
str name = "ADD1"
str s1
rget s1 "ADD1" rkey
out s1
;; Output:
;; 1051 FAIRFAX LN
___________________________________________
QM3 Code is:
{
string userRoot = "HKEY_CURRENT_USER";
string subkey = @"Software\GinDi\QM2\Test\";
string keyName = userRoot + "\\" + subkey;
string name = "ADD1";
string data = "ADD1";
Print(ARegistry.GetString(out data, name, keyName));
}}
__________________________________________
*The Key is "Test" which is under "HKEY_CURRENT_USER\Software\GinDi\QM2\" and String Value = ADD1
*The data is "1051 FAIRFAX LN", but the code is returning, False
Any help is greatly appreciated. Thanks,
ScottF