Looking for example scripts to learn

I'm trying to learn SikuliX, but the documentation is incredibly hard to understand. I'm trying to get it to simply press Ctrl+A just to practice, but this doesn't seem to work and causes it to type only a literal a:

wait(0.5)
keyDown(KEY_CTRL)
wait(0.5)
type('a')
keyUp(KEY_CTRL)

Ultimately, I'm trying to figure out how to get it to press Ctrl+Shift+A. Any help would be appreciated!

3 points · 2 comments · view on lemmy.world

2 Comments

b_van_b@programming.dev · 2 pts · 1y (1 reply)

I haven't used it, but from the documentation, it looks like you should do this:

type("a", Key.CTRL + Key.SHIFT)

https://sikulix-2014.readthedocs.io/en/latest/keys.html#key-modifiers-modifier-keys

Flagstaff@programming.dev · 1 pts · 1y

Thanks, I hadn't yet read all the way to the bottom there! That worked.