← Back to team overview

sikuli-driver team mailing list archive

[Question #140409]: How to execute the sikuli commands in java

 

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

Hi

Screen s = new Screen();
s.type("r","KEY_WIN", 0);
s.click("imgs/spotlight.png", 0);
s.wait("imgs/spotlight-input.png");
s.type(null, "hello world\n", 0);
  
Javadoc of SikuliWhen i run above code in eclipse through java i am getting javanullpointer exception.
Installation of application in windows The task as to be done as follows
1) Open the run
2)type the C:\abcfile.exe
3) run the image
4) Is there any commands to verify the text in the screen ??

Running in Windows Vista machine.

Note: How to pass the parameters for the type click commands in java. What are the parameters should be passed for PSRML in java.
(type(PSRML, String, int) - Method in class edu.mit.csail.uid.Region )

 Please give any suggestions for executing the above code.

Links: java program
http://sikuli.org/trac/wiki/How%20to%20use%20Sikuli%20Script%20in%20your%20JAVA%20programs

java api

Thanks
Siva
 



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