sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #47408
Re: [Question #166375]: How to get specific registry value in sikuli
Question #166375 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/166375
sdraganov posted a new comment:
Does this still works? I am getting the right output from cmd but it gives me the following error from sikuli:
ERROR: The system was unable to find the specified registry key or value.
I'm on Microsoft Windows [Version 10.0.16299.431] , SikuliXIDE 1.1.2, Java Version 8 Update 171.
Here what I've tried:
In cmd:
reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\V-Ray for 3dsmax 2014 for x64" /f DisplayVersion
Output:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\V-Ray for 3dsmax 2014 for x64
DisplayVersion REG_SZ 3.60.04
In Sikuli(#1 - raw string):
ret = os.popen('reg query r"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\V-Ray for 3dsmax 2014 for x64" /f DisplayVersion').readlines()
for line in ret:
print line.strip()
Output:
ERROR: Invalid key name.
Type "REG QUERY /?" for usage.
In Sikuli(#2 - escaping \'s):
ret = os.popen('reg query "HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\V-Ray for 3dsmax 2014 for x64" /f DisplayVersion').readlines()
for line in ret:
print line.strip() # print each line
Output:
ERROR: The system was unable to find the specified registry key or value.
Any idea what's wrong?
Thanks in advance.
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.