← Back to team overview

sikuli-driver team mailing list archive

[Question #685815]: Drag drop to random location

 

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

Not getting any errors, but also not doing anything. Trying to move an image to a randomly defined coordinate:

import random
from random import choice

def position1():
    position1 = Location(548,292)

def position2():
    position2 = Location(633,293)

def position3():
    position3 = Location(738,288)

def position4():
    position4 = Location(817,284)

def randomDrop():
    positionOneToFour = [position1, position2, position3, position4]
    random.choice(positionOneToFour)()

def main():
    dragDrop("1573618403777.png",(randomDrop))
    print('done')

main()

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