Question #242128 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/242128
Vaishali posted a new comment:
Actually this is my code.. when i run it using eclipse it runs
properly... when i try to run it in cmd prompt i get those errors.. ya
its a simple program i hav just to started learning..
import org.sikuli.script.*;
public class HelloWorldClass {
public static void main(String[] args)
{
float similarity=(float)0.7;
int timeout=5;
Pattern Win7StartButton =new
Pattern("C:/Users/404905/workspace/HelloWorld/image/Win7StartButton.png");
Screen screen=new Screen();
if(screen.exists(Win7StartButton.similar(similarity),timeout)!=null)
{
try
{
screen.click(Win7StartButton,0);
screen.type("hello");
Pattern image =new
Pattern("C:/Users/404905/workspace/HelloWorld/image/image.png").similar(similarity);
screen.click(image);
}
catch(FindFailed e)
{
e.printStackTrace();
}
}
}
}
--
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