Sending keytrokes to Windows app

M

Marten Hedman

Hello,

I am trying to control a Windows application from a python script with
SendKeys and Python 2.3. My problem is that the characters ':' and '\'
are sent to the application as ';' and '+'. See code example below.

I suspect that the problem has to do with the regional and keyboard
settings in Windows. I am using the setting English (UK) with Finnish
keyboard. If I change the settings to English (US) with US keyboard,
everything works fine.

Is there a way to either change the language and keyboard settings from
my python script, or get Sendkeys to send the characters correctly? Or
should I use another way to send the keystrokes to the application?

Transcript of Python session:

Python 2.3.5 (#62, Feb 8 2005, 16:23:02) [MSC v.1200 32 bit (Intel)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
Thank's in advance

Marten Hedman
Turku Centre for Biotechnology
Turku, Finland
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,818
Latest member
SapanaCarpetStudio

Latest Threads

Top