Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Send Keyboard Event does not work properly #97

Closed
Babzsak opened this issue Jun 1, 2017 · 1 comment
Closed

Send Keyboard Event does not work properly #97

Babzsak opened this issue Jun 1, 2017 · 1 comment
Milestone

Comments

@Babzsak
Copy link

Babzsak commented Jun 1, 2017

I am using the latest swinglibary with RF for thesting a swing webservice.

I would like to use it like this:
Send Keyboard Event VK_UNDERSCORE

Along the official keyevent documentation (https://docs.oracle.com/javase/7/docs/api/java/awt/event/KeyEvent.html) this would type: _
But instead it fails with the following errormessage:

FAIL : Processing XML-RPC return value failed. Most often this happens when the return value contains characters that are not valid in XML. Original error was: ExpatError: not well-formed (invalid token): line 1, column 180

Either the documentation to this keyword is very poor, which would mean that I am using the tool the wrong way or it is simply not well implemented.
Someone please take a look at that.

Cheers,
Babzsak

@mihaiparvu
Copy link
Contributor

Hello Babzsak,

There is indeed a problem with the documentation, the Send Keyword Event keyword calls Abbot, a dependency for SwingLibrary, which provides its specific mappings for the keystrokes.

Unfortunately, the VK_UNDERSCORE isn't mapped in Abbot's KeyStrokeMap, and as far as I know it is no longer developed (last release was in 2013).

As a workaround for your issue I suggest using the SHIFT_MASK modifier for the keyword.
E.g: Send Keyboard Event VK_MINUS SHIFT_MASK
This should work on a US Locale keyboard setup, but I think can be modified for the other locales too.
I will update the keyword's documentation to be more accurate, in the next release.

Kind regards,
Mihai.

mihaiparvu added a commit to mihaiparvu/SwingLibrary that referenced this issue Jun 19, 2017
@oanab11 oanab11 added this to the v1.9.8 milestone Jul 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants