Solved

Get application title form exe name

Posted on 2009-05-20
6
1,353 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
  • 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
Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

 

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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
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…
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…

776 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