|
-
Nov 7th, 1999, 02:05 AM
#1
Thread Starter
Hyperactive Member
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.
-
Nov 7th, 1999, 02:20 AM
#2
Hyperactive Member
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.
-
Nov 7th, 1999, 09:10 AM
#3
Hyperactive Member
HELP!
------------------
Tom Young, 14 Year Old
[email protected]
ICQ: 15743470
AIM: TomY10
PERL, JavaScript and VB Programmer
-
Nov 7th, 1999, 12:18 PM
#4
Hyperactive Member
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
-
Nov 8th, 1999, 03:18 AM
#5
Hyperactive Member
-
Nov 8th, 1999, 12:01 PM
#6
Junior Member
Check out http://www.thescarms.com there are a couple of apps that will do what you are looking for.
------------------
LM Ginn
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|