Solved

Get application title form exe name

Posted on 2009-05-20
6
1,362 Views
Last Modified: 2012-05-07
I have an exe running named test.exe
I want to know the title of its window (application title)

0
Comment
Question by:RETAILREALM
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 4

Expert Comment

by:dublingills
ID: 24429743
0
 
LVL 4

Expert Comment

by:dublingills
ID: 24429757
0
 
LVL 1

Expert Comment

by:Saldavo
ID: 24429769
Assuming you are using vb.net you can use the following example:
Label1.Text = My.Application.Info.Title  'Gets the application product title
Label2.Text = My.Application.Info.ProductName  'Gets the application productname info
Label3.Text = Me.Text  'Gets the form 'text' property

Open in new window

0
MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

 

Author Comment

by:RETAILREALM
ID: 24431299
Thanks for reply

Am using VB6.0 no dot net

Am in one application so my application is abc.exe

Now I want to find name of other application's caption whose exe name is  test.exe form  my application  abc.exe

0
 
LVL 4

Accepted Solution

by:
dublingills earned 500 total points
ID: 24431791
Then you need to find the class name of the test.exe application and use the window handle returned by the FindWindow API in your call to GetWindowText.

See this article for more then combine it with the links in my previous post.

http://www.vbforums.com/showthread.php?t=356751

0
 

Author Closing Comment

by:RETAILREALM
ID: 31583400
Thanks, that worked perfectly
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

688 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