copy BIOS Version and date from system summary dialogue box to notepad

Asked by New To Sikuli

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.

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

have a look at bug 710586 according the problems of Region.text()

I recommend to look for Jython features or command line tools, that deliver the wanted information.

Can you help with this problem?

Provide an answer of your own, or ask New To Sikuli for more information if necessary.

To post a message you must log in.