Python, the Win32api, and directing input to game clients

D

darkstorme

I'm trying to use python to create a sort of control bridge between
IRC and the Neverwinter Nights game client. One direction (output) is
easy; the game, conveniently, writes its logs to a text file - polling
and parsing do the rest in that regard.

However, input, as yet, eludes me. I've fooled around with the
windows api, but both SendKeys and SendMessage fail to register on the
game window. When testing in Notepad, the text and other keypresses
appear as planned. They do not, however, in Neverwinter. It's been
suggested on some sites I've come across that Win32API calls might not
work on games because the games are coded "closer to the metal", as it
were, and don't fall under the abstraction of the Win32 shell.

Basically, a) can anyone give me a pointer in a direction I should be
heading, and/or b) is the Win32api a dead end for this goal?

Many thanks in advance.
 

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,770
Messages
2,569,583
Members
45,074
Latest member
StanleyFra

Latest Threads

Top