Question #182538 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/182538

Boipelo Mawasha gave more information on the question:
I've managed to sort it out using the following code:

mhead.below(i*s).below(h).highlight(1);
ms.dragDrop(mhead.below(i*s).below(h).left(s-15), 
mhead.below(i*s).below(h).right(s-10), 0);
ms.click("images/copy.png", 0);
tempString = Clipboard.getContent().substring(1, 10).toString();

Now my problem is that the code exists in a do-while loop. The exit
criteria compares the tempString with a previously set string
(textCapture). Even when the values are equal, it does not exit the loop
and it results in an infinite loop.

do{
                
        mhead.below(i*s).below(h).highlight(1);
        ms.dragDrop(mhead.below(i*s).below(h).left(s-15), 
mhead.below(i*s).below(h).right(s-10), 0);
        ms.click("images/copy.png", 0);
        Thread.sleep(30);
        tempString = Clipboard.getContent().substring(1, 10).toString();
        System.out.println(tempString);
        i++;
        Clipboard.clear();
}while((tempString.equals(textCapture) != true));

Am I doing anything wrong?

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

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to