Well it is not very efficient, however it works... you will need to know the
"title" of application window that is running.
Set oShell = WScript.CreateObject("WScript.Shell")
oShell.Run "notepad"
oShell.AppActivate "Untitled - Notepad"
This sample launches Notepad and the AppActivate brings focus to it
referencing the application title.
"Spin" wrote:
> Gurus,
>
> I have a desktop application that I launch via script. But for a process
> inside of it to complete I need the application window to be open but AND
> active. Does anyone know of a script which can bring say for instance, a
> single application window that is open on the desktop back into "focus".
> You can easily distinguish the active window because it's title bar is dark
> blue versus the pale gray of an inactive window.
>
> --
> Spin
>
>
|