← 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

    Status: Open => Answered

RaiMan proposed the following answer:
--- Also what is the difference between C_ALT and ALT keywords.
For API usages the Key.ALT version is recommended, since it is of type String (easy concatenation with other Strings).
the C_XXX contain the same, but as Java type char. it is implemented and hence preferably for internal use.

--- press and hold fn-key
the fn-key usage as such is not available to the Java level. It is a hardware trick to produce key-codes on compact keyboards, that could otherwise not be produced, since the real key is not available on that compact keyboard.
To the Java level the intended key is reported.
So in your case, if you press fn-printscreen: what is the intended key press?
if it is printscreen, then you can try: Key.PRINTSCREEN

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