← Back to team overview

sikuli-driver team mailing list archive

[Question #222923]: Using Sikuli to take automated screenshots of a window?

 

New question #222923 on Sikuli:
https://answers.launchpad.net/sikuli/+question/222923

Simple question here: I'd like to use Sikuli to take a screenshot of a window on a mac, which would be done by hitting CMD+SHIFT+4 then hitting Space, then clicking a window.

For the CMD+SHIFT+4 I'm having trouble. This doesn't work:

keyDown(KEY_META)
keyDown(Key.SHIFT)
wait(1)
type("4")
wait(1)
keyUp(Key.SHIFT)
keyUp(KEY_META)

Anyone have any ideas? I'm open to other routes of hitting the key combo, for instance, I know to copy this works well:

type("c",KEY_META)

But, it doesn't accept three arguments.

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