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

Input Text looses chars from time to time #152

Open
dschiller opened this issue May 25, 2021 · 14 comments
Open

Input Text looses chars from time to time #152

dschiller opened this issue May 25, 2021 · 14 comments

Comments

@dschiller
Copy link

dschiller commented May 25, 2021

*** Settings ***
Library  SikuliLibrary

*** Test Cases ***
Test
  Input Text  \  Test  # Types only `Tet` instead of `Test`
@rainmanwy
Copy link
Owner

Could you have a try "Paste Text"

@dschiller
Copy link
Author

com.github.rainmanwy.robotframework.sikulilib.exceptions.ScreenOperationException: Paste text failed

@dschiller
Copy link
Author

dschiller commented Dec 3, 2021

How do you do Image could be empty ?

I did it like this:

Paste Text  \  My Text to enter

@dschiller
Copy link
Author

Seems

Input Text  \  abcdefghijklmnopqrstuvwxyz

only types abcdefghijkl and the m seems to open the Application Menu.

@dschiller
Copy link
Author

Possibly that may also be the failure with the s where it could be invoke a Modifier Key + S.

@dschiller
Copy link
Author

Is there a way to avoid modifier keys while typing text only ?

@dschiller
Copy link
Author

Interesting: Same happens with pyautogui.

@dschiller
Copy link
Author

Seems the letters / keys mM and sS are the ones with issues here. Also y, Y and z, Z are reversed.

@dschiller
Copy link
Author

dschiller commented Dec 3, 2021

aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ
                        ^^          ^^          ^^^^
        doesn't work, seems to      |           |
        open the File Menu          |           |
                        work's only sometimes   |
                                             reversed

@rainmanwy
Copy link
Owner

${EMPTY} variable could be used.
"Paste Text" should work in new version, and have better performance than "Input Text"

@dschiller
Copy link
Author

Updated to latest SikuliLibrary 2.0.3 and Paste Text doesn't do anything. You sure it types text or it like the name says paste text from clipboard ?
Also figured out the Input Text doesn't handle special chars as expected. / for example becomes -.

@dschiller
Copy link
Author

dschiller commented Dec 8, 2021

It seems Input Text uses the english keyboard layout and maps it to the selected one ( german in my case ). Which means when I want to type a / which is Shift + 7 then I need to type a & which is the 7 on the english keyboard layout.

This is bad because then when the keyboard layout changes then it is no longer a /.

Obviously the same then also is valid for yYzZ.

@rainmanwy
Copy link
Owner

yes. sikuli doc mentioned about "type" method, Region.type

could you give more details about "Paste Text".
I have tried to install 2.0.3, and use "Paste Text" to execute "Paste Text ${EMPTY} République Française", and did not meet any problems.

@dschiller
Copy link
Author

dschiller commented Dec 8, 2021

I have this workaround:

...  - PyAutoGUI.Type Text  Nortal Conbat        # It is impossible to type `mMsS` ( `sS` ) only sometimes,
...                                              # also `Y` and `Z` are reversed on macOS with SikuliLibrary
...                                              # and PyAutoGui
...  > Fix: Use `nN` instead of `mM`

But now I must enter a m how can I do that ?

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

2 participants