sikuli key modification through Fn key

Asked by rupayan nath

I need to take screenshot.I wrote something like
         'type(Key.FN, KeyModifier.END)' [END is the key for PrntScrn]
I have tried 'Key.FUNCTION' as well but Key doesnot have any such attribute.Please provide me a solution

If I use capture(), how can I save the file to word document

Thanks

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Karl (k-d) said :
#1

Capture() tells you where it stores the file.
file_path = capture(0,0,200,200)
You can add lines in your script to put the captured image into a word document.
click(Insert.png)
click(Pictures.png)
type(File_name.png, file_path)
*You'll need to take screenshots of the buttons/dialog area.

Can you help with this problem?

Provide an answer of your own, or ask rupayan nath for more information if necessary.

To post a message you must log in.