Search code examples
automationsikulisikuli-scriptsikuli-ide

Save the screenshot of desktop in Microsoft Word using Sikuli


I am new to Sikuli and I had one doubt. Consider I am using Sikuli and written some sentences in Microsoft Word using Sikuli (by using the editor command). Now I want to take a screenshot of the Desktop and paste in the Microsoft Word file after the sentences I have written.

Can this be done in Sikuli?


Solution

  • If the Word window is already in focus, just do:

    type(Key.PRINTSCREEN)
    type("v", KeyModifier.CTRL)