The most important thing is I'am sorry for saying that's a bug.<br><br>
<div class="gmail_quote">2010/10/23 nathon py <span dir="ltr"><<a href="mailto:nathon.py@gmail.com">nathon.py@gmail.com</a>></span><br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div>The bug has been closed, you can check here </div>
<div><a href="http://sourceforge.net/tracker/?func=detail&atid=551954&aid=3077881&group_id=78018" target="_blank">http://sourceforge.net/tracker/?func=detail&atid=551954&aid=3077881&group_id=78018</a></div>
<div>with an answer <font color="#000099">'This is just a "feature" of Windows'</font> by <a title="Mark Hammond" href="http://sourceforge.net/users/mhammond/" target="_blank"><font color="#0092e8">mhammond</font></a> .</div>
<div> </div>
<div><font color="#000099">@Tim, I try the way you mentioned, it really works. I've tried ShowWindow(),EnableWindow(),etc, before. It never woks.</font></div>
<div><font color="#000099">@Preston, I read the tutorial you gave, it's very helpful. </font></div>
<div><font color="#000099">I use the command line as following :</font></div>
<div><font color="#000099">start pythonwin /app XXX.py<br>It works and producing a window, if i go deep into the pythonWin, it's not a problem.</font></div>
<div> </div>
<div><font color="#000099">thanks a lot for your advises</font></div>
<div> </div>
<div> </div>
<div>Why I want to activate a window?</div>
<div>Because I want to simulate some mouse clicking and keyboard typing in some application, doing this automatically please me.</div>
<div>To activate a window is necessary.</div>
<div><br>
<div>Why in script?</div>
<div>To double click it or run it in command line is a easy way I prefer.</div><br></div></blockquote></div><br>