← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #237129]: how to use printscreen on laptop in java which requires to press the "fn" key

 

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

RaiMan proposed the following answer:
Uuups ???

PAGE_DOWN was only an example for the fn-key usage and Sikuli simulation
on my laptop keyboard.

So if the  PRINTSCREEN feature is your intention, then
s.type(Key.PRINTSCREEN);

should do it.

BTW: you might capture() with Sikuli as well
ScreenImage img = s.capture();
String tempFileName = img.getFile();

now you might do with
File tempFile = new File(tempFileName)

... whatever you want

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