|
-
May 1st, 2009, 12:17 AM
#1
Thread Starter
Addicted Member
Getting Window name
Im wounder how would I find the name for a window and place the name in a textbox
EX: The form will look for all the window name running an paste all the names in the textbox1
I looked on google theres only VB6 O.o
How would I do this?
-Thanks
-
May 1st, 2009, 12:39 AM
#2
Re: Getting Window name
Look under the Processes (or Process I forget which) and you will find something like GetProcesses.
Then make a For Each loop through them and there is a .GetProcessName attribute (once again it may be different, I don't remember exact name) that will give you the title of the window, if there is one.
I'd give you more specifics but I don't have time to find the exact names.
-
May 1st, 2009, 12:57 AM
#3
Re: Getting Window name
What exactly do you mean by "window name"? Are you looking for the same list as you find in the Applications tab of the Task Manager? If so then you'll want MainWindowTitle rather than ProcessName, which is what you see in the Processes tab of the Task Manager.
-
May 1st, 2009, 11:16 PM
#4
Re: Getting Window name
My mistake, that's what I get for being up late...
I meant get the process of the window and then use GetMainWindowTitle, thanks for the correction jmc
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
|