<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1458" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>"Matthew K Jensen" <</FONT><A 
href="mailto:mattjensen@timetospare.net"><FONT face=Arial 
size=2>mattjensen@timetospare.net</FONT></A><FONT face=Arial size=2>> wrote 
in message </FONT><A 
href="news:173c23bb.0408282255.2f1be2ee@posting.google.com"><FONT face=Arial 
size=2>news:173c23bb.0408282255.2f1be2ee@posting.google.com</FONT></A><FONT 
face=Arial size=2>...</FONT></DIV>
<DIV><FONT face=Arial size=2>> Ok, this might seem odd as to why I am doing 
this in this certain way,<BR>> but it's for a very specific purpose, and in 
so doing needs to be done<BR>> this way. I am writing code on a winbloze box 
like so:<BR>> <BR>I have never gotten popen to work correctly in windows, 
maybe you could try writing a batch file or download </FONT><FONT face=Arial 
size=2>The Python for Windows extensions</FONT></DIV>
<DIV>
<DIV><FONT face=Arial size=2>at </FONT><A 
href="http://starship.python.net/crew/mhammond/"><FONT face=Arial 
size=2>http://starship.python.net/crew/mhammond/</FONT></A><FONT face=Arial 
size=2> and do something like.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>from win32com.client import constants<BR>import 
win32con<BR>import win32com<BR>shell = 
win32com.client.Dispatch("WScript.Shell")<BR>shell.Run('notepad.exe')<BR>shell.SendKeys('And 
now for something completely different')</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>but SendKeys only sends to the window with 
focus</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Tom</FONT></DIV></DIV></BODY></HTML>