sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #04282
Re: [Question #166375]: How to get specific registry value in sikuli
Question #166375 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/166375
Status: Open => Answered
RaiMan proposed the following answer:
--- _winreg
Is not supported in Sikuli (not available in Jython, since it is a C-based module in Python, that are normally not available as ported JNI-modules in Jython).
If you know how to program in Java, you might use
java.util.prefs.Preferences (look:
http://alexradzin.blogspot.com/2011/01/access-windows-registry-with-
pure-java.html), but it is restricted o string values.
--- your problem:
since the command contains \'s, these have either to be doubled or the string has to be a raw string r"some text with \ inside" (I prefer this):
ret = os.popen('reg query
r"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E96C-E325
-11CE-BFC1-08002BE10318}\0003" /f DriverVersion').readlines()
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.