Thursday, April 5, 2012

Read lines from *.txt file(Notepad) and pasted into an application using sikuli

Scenario : Creating new text on interlinear pane and insert a add approve analysis in word analysis pane.

Explanation :
This scenario is created for mainly to read lines from *.txt file and pasted into an application using python syntax. I have added this script into sikuli script and given below for sample code to understand.

Example :

theFile = file(r"F:\Office\Script\sikulitestfiles\Text.txt")
for line in theFile:
print line # print line in sikuli
click("1330680438453.png"), type(line)
theFile.close()

Full Code in picture view :


Demo view in Video :

Note : I have given below video for easy to understand and this is taken When the script run on sikuli IDE

1 comment: