I have the process ID of the process for my application that is already running. Now I want to activate that same window through this process id with VBScript.
Supposing mypid
is the process ID
Set Shell = CreateObject("WScript.Shell")
Shell.AppActivate(mypid)
This is returning false
on Windows 7.
If anyone has an answer, I would like to know it.