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

Hi , I have a graph in my page and for that the dedicated inputs are given as 
buttons like . Any one who needs that input has to pick the necessary button 
and put it in a box which will use it in the graph. I stored the image of the 
button. But when I tried dragdrop option it is not working.

My code is given below.
public static boolean screenDragDropWidgets(String imagepath ,int xoffset,int 
yoffset, int timeout){
                boolean result = false;
                
                for (int second = 0;; second++) {
                                if (second > timeout) {
                                result = false;
                                break;
                                }
                                try{
                                        if (screen.exists(imagepath)!= null){
                                        screen.dragDrop(0, 100); // I tried 
this with the xoffset and yoffset as well
                                        break;
                                        }
                                }catch (Exception e)                    {
                                e.printStackTrace();
                                }       
                }
                return result;
        }


But I am getting a error message saying that 
[info] Sikuli vision engine loaded.
[log] DRAG null to null

Kindly let me know the usage of the dragdrop on this and how to make it working?

-- 
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