RETAILREALM
asked on
Get application title form exe name
I have an exe running named test.exe
I want to know the title of its window (application title)
I want to know the title of its window (application title)
Or in VB6 use the GetWindowText API function
http://www.ex-designz.net/apidetail.asp?api_id=185
or
http://www.vb-helper.com/howto_getwindow_min_max_restore.html
http://www.ex-designz.net/apidetail.asp?api_id=185
or
http://www.vb-helper.com/howto_getwindow_min_max_restore.html
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
ASKER
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
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
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks, that worked perfectly
Try System.Diagnostics.Process
http://msdn.microsoft.com/en-us/library/system.diagnostics.process.mainwindowtitle.aspx
HTH