← Back to team overview

sikuli-driver team mailing list archive

[Question #184872]: copy BIOS Version and date from system summary dialogue box to notepad

 

New question #184872 on Sikuli:
https://answers.launchpad.net/sikuli/+question/184872

Hi,

Need Help!!!

I wrote following code that will copy Bios information from system summary dialogue to notepad.
BUT it writes some different characters to notepad.
Example: 

Data written to notepad: T?TI
Actual Data is : Total

file =open("C:\logData.txt","a")
click("Start.png")
click("Run.png")
find("Drop Down Arrow.png")
type(" winmsd")
click("OK.png")
wait(1)
click("Maximize Button.png")
wait(1)
click("System Summary.png")
sik = ("BIOS VERSION/DATE.png")
m = find(sik).left(1).right(400)
m.highlight(1)
m = str(m.text())
print m
file.write(m)
wait(2)
sik1 = ("TOTAL PHYSICAL MEMORY.png")
m1 = find(sik1).left(1).right(400)
m1.highlight(1)
m1 = str(m1.text())
print m1
file.write(m1)
file.close()

Thanks in advance for any help.



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