right/left shift/ctrl

Asked by Georg Grabler

For some applications, it's necessary to differ the right or left shift/ctrl properly. In example, VT-Terminals without changing the VT-Configuration for the users, needs to have RCTRL pressed as "enter".

Sikuli by default seems to use the LCTRL code, so my question is:
Is it possible to simulate the RCTRL properly in some way (like passing a keycode in some way to type().

Otherwhise - makes it sense to open a bug report/feature request?

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
RaiMan
Solved:
Last query:
Last reply:
Revision history for this message
Best RaiMan (raimund-hocke) said :
#1

The Key class in Sikuli is based on the underlying Java class java.awt.event.KeyEvent.
A distinction between left and right shift or control key is not available with this class, so it will not be a standard Sikuli feature.

You have to find your own solution.

Revision history for this message
Georg Grabler (ggrabler) said :
#2

Thanks for the fast reply, I will write a small C program simulating this for me.

Revision history for this message
RaiMan (raimund-hocke) said :
#3

Could you send me your solution, when it is ready? https://launchpad.net/~raimund-hocke

Revision history for this message
Georg Grabler (ggrabler) said :
#4

will do, but very likely not before this weekend until i get to do that.

Revision history for this message
RaiMan (raimund-hocke) said :
#5

Uuups, no need to hurry for me. Take your time.