[Tutor] Opening a dos exe

Alan Gauld alan.gauld at btinternet.com
Fri Mar 12 01:07:38 CET 2010


"Emile van Sebille" <emile at fenx.com> wrote

> I've sometimes written python code to create wsh (and other) scripts that 
> I then run from within python.  WSH include a sendkeys command IIRC that 
> works with dos/command/cmd windows.  There's likely ways to use the win32 
> api as well (win32api.keybd_event?).

Using Pythonwin you can run WSH natively from Python. Just register
Python as a Windows Scripting language.

Alan G 




More information about the Tutor mailing list