sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #04207
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:
You can use the Windows command
reg query
to read your reg values.
import os
ret = os.popen("reg query /?").readlines() # run comand
# now ret contains the lines that are returned on stdout
for line in ret:
print line.strip() # print each line
# strip removes leading/trailing whitespace
Play a little bit around with it by configuring the reg query parameters accordingly.
If the command needs " apostrophes, write them as \" in the command string of popen.
When you found out, what you get returned, you are left with extracting
the things you need from the returned lines.
come back with real values and output if you need help.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.