← Back to team overview

sikuli-driver team mailing list archive

[Question #679736]: dragdrop() slider

 

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

i'm trying to use function drapDrop() to slide the slidebar.

my code as below:
try{
      Pattern pattern   = new Pattern("img\\bdot.png").similar(0.7f);
      Region tmp  = s.find(pattern);
      if (tmp != null) {
        System.out.println("img bdot already found ");
        System.out.println("X : "+tmp.getX()+" Y : "+tmp.getY()+
                           " H : "+tmp.getH()+" W : "+tmp.getW()); 
        s.dragDrop(tmp, Location(tmp.x + 0, tmp.y + 100));

system comeout:

C:\Sikuli>javac CTOA.java
CTOA.java:41: error: cannot find symbol
        s.dragDrop(tmp, Location(tmp.x + 0, tmp.y + 100));
                        ^
  symbol:   method Location(int,int)
  location: class CTOA
1 error		
 what i miss?
thanks a lot


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