-
What kind of window is opened? There are two ways I thought of going about doing this...
If the application started is something with an actual interface window and doesn't just work in the background, use the GetForegroundWindow API to get its handle... or branching from that, you could use one of the examples in vb-world's topic areas do retrieve a list of available window before and after the application is run, and then after. Compare the two and you'll get the window of the application. Last but not least, it just made me think of an AppActivate statement in the VB4 help file... see if you can mutilate it for your purposes.
Code:
' AppActivate can also use the return value of the Shell function.
MyAppID = Shell("C:\WORD\WINWORD.EXE", 1) ' Run Microsoft Word.
AppActivate MyAppID ' Activate Microsoft
' Word.
-
It is not a window that is running, just a process. I did not execute it, Windows did. I know nothing about it, just the path it was executed from.
-
HELP!
------------------
Tom Young, 14 Year Old
[email protected]
ICQ: 15743470
AIM: TomY10
PERL, JavaScript and VB Programmer
-
I need to terminate (kill) an application running that was started under RunService in the registry. I have no idea what the class, hWnd, or caption is. I do however know the path in which it was started from. Can this be done? Thanx.
------------------
Tom Young, 14 Year Old
[email protected]
ICQ: 15743470
AIM: TomY10
PERL, JavaScript and VB Programmer
-
-
Check out http://www.thescarms.com there are a couple of apps that will do what you are looking for.
------------------
LM Ginn