How to place window on top?

V

Vitali Gvozdev

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)?
 

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,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top