SavinaRoja / PyUserInput

A module for cross-platform control of the mouse and keyboard in python that is simple to install and use.
GNU General Public License v3.0
1.07k stars 244 forks source link

k.type_string method doesn't work as expected #56

Open ghost opened 9 years ago

ghost commented 9 years ago

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

pepijndevos commented 9 years ago

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

ghost commented 9 years ago

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