← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #142657]: sikuli java programs with usage of special keys like TAB, ENTER

 

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

RaiMan posted a new comment:
at least you need a
scr = new Screen();

to use any Sikuli methods:

scr.dragDrop(begin,end);
scr.type("c",KEY_CMD);
m = scr.find();

for the type you additionally need:
import java.awt.event.InputEvent;
char KEY_CMD = java.awt.event.InputEvent.META_MASK;

the rest is Java slang ;-)

If you want to restrict your operations to a region (e.g. the table area):
reg = new Region(x, y, w, h)

and then use reg instead of scr.

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