← Back to team overview

sikuli-driver team mailing list archive

[Question #275468]: read location from file for dragDrop

 

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

I am trying to read coordinates of "Location" from file for dragDrop
Here the snippet

f = open("C\Test.txt")
for line in f.readlines():
    #print line
    dragDrop(Location(line),Location(200,200)
f.close()

The Text.txt contains
560,460
 The error is 
[error] TypeError ... 1st arg can't be coerced to java awtPoint,org.sikuli.script.Location)

I am trying to automate multiple icons to be dragged and dropped in to a box whose Locations are stored in a Test.txt file 
How to read from a file in a for loop for dragDrop Location?

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.