← Back to team overview

sikuli-driver team mailing list archive

[Question #697795]: Using keyDown and keyUp for regular keys?

 

New question #697795 on SikuliX:
https://answers.launchpad.net/sikuli/+question/697795

Hi,

How can I use Region.keyDown() and Region.keyUp() for all the regular keys on my keyboard, and not just the special keys in the Key class? When I do Region.keyDown("x") for example, I get this error:

[error] TypeError ( keyDown(): 1st arg can't be coerced to String, int )

I can't always use Region.type() because I need to be able to control the timing and duration of individual key presses.

Many thanks,


-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for SikuliX.