How to place window on top?

Vitali Gvozdev vitali_vg at yahoo.com
Fri Jan 23 16:23:55 EST 2004


Hi,

Using win32 extensions and windows scripting, I'm trying to open an
application in Windows2K to send some keystrokes to it. But every time
the application window is openning below other windows and key are
sent to the applications, which should not be affected.

WshShell = win32com.client.Dispatch('WScript.Shell')
...
def Initialize(theCommand, theName):
    if not WshShell.AppActivate(theName):
        WshShell.Run(theCommand)
...
Can you explain me how to put the desired window on top (switch
focus)?



More information about the Python-list mailing list