Solved

Find taskID

Posted on 1998-12-11
1
173 Views
Last Modified: 2010-05-03
I am trying to use the AppActivate statement, but I need to know the TaskId of the App that I want to give focus.  How do I find the TaskID of a particular running app through code.
0
Comment
Question by:timpeters
1 Comment
 
LVL 1

Accepted Solution

by:
slobstar earned 50 total points
ID: 1449532
Here are two options:

Either type the title of the application.
AppActivate "Microsoft Word"

Or you can use the return value (taskID) of the Shell function.
MyAppID = Shell("C:\WORD\WINWORD.EXE", 1)
AppActivate MyAppID

Good luck!
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now