PyUserInput icon indicating copy to clipboard operation
PyUserInput copied to clipboard

k.type_string method doesn't work as expected

Open ghost opened this issue 9 years ago • 2 comments

Hello. I try this small code piece.

from pymouse import PyMouse
from pykeyboard import PyKeyboard

m = PyMouse()
k = PyKeyboard()

x_dim, y_dim = m.screen_size()
m.click(x_dim/2, y_dim/2, 1)
k.type_string("hello")

Instead of "hello" it writes "odllt" string. Any ideas. Thanks

ghost avatar Dec 26 '14 09:12 ghost

What is your OS, language and keyboard layout? I think that at least on some OSes, it only works reliably with US QWERTY layouts.

pepijndevos avatar Dec 26 '14 10:12 pepijndevos

Hello. My operating system is Ubuntu. And I use Turkish F keyboard layout.

ghost avatar Dec 29 '14 12:12 ghost