← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #166375]: How to get specific registry value in sikuli

 

Question #166375 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/166375

    Status: Answered => Open

pipboy is still having a problem:
hi,RaiMan,thanks for your fast reply.

Windows cmd:
c:\>REG QUERY "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0003" /f DriverVersion

result :
DriverVersion  REG_SZ   6.1.7600.16385                   #real values i need

------------------------------------------------------------------------------------------
 I tried to do the same thing at Sikuli,

import os

ret = os.popen('reg query
"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E96C-E325
-11CE-BFC1-08002BE10318}\0003" /f version').readlines()

for line in ret:
     print line.strip() 

result :
....
Sound, video and game controllers 
 HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0000 
...0001,0002
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}\0010 


 I tried a variety of print() format/command
but still can't find DriverVersion in "{..318}\0003"

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.