type('`') odd behaviour II

Asked by Alex Lunyov on 2017-11-11

Well, I still need help.

I noticed such strange thing:

type('`') is dependent on _current_ layout before the run button is pressed.

I made a test:

for i in range(10):
    try:
        type('`') # backquote typing
    except:
        print "error"
    wait(1)

I set layout to English and run the script. During 10 seconds I change the layout manually and see typing of backquotes and other symbol corresponding the key '`'.

Then I set layout to Cyrillic and run the script. I see nothing is typed though I change the layout to English and back etc. during that 10 seconds. And after 10 seconds I see 10 "error" printings.

So, how could I make my script layout independent?

P.S. and type('d') for example is initial-layout independent.

Question information

Language:
English Edit question
Status:
Open
For:
Sikuli Edit question
Assignee:
No assignee Edit question
Last query:
2017-11-11
Last reply:

Can you help with this problem?

Provide an answer of your own, or ask Alex Lunyov for more information if necessary.

To post a message you must log in.