|
-
Jul 4th, 2010, 08:34 PM
#1
Thread Starter
New Member
Re: SendKey to other process
Really thanks.
I had no idea how to fix this and you both helped me alot.
But there is still 1 think i dont understand.
vb Code:
nPadHwnd = FindWindow("notepad", "Untitled - Notepad")
Class: notepad
Windows name: Untitled - Notepad
But how i get class of an program?
-
Jul 4th, 2010, 08:40 PM
#2
Re: SendKey to other process
 Originally Posted by pekeltje
Class: notepad
Windows name: Untitled - Notepad
But how i get class of an program?
Well you could replace the classname with VBNullstring,
nPadHwnd = FindWindow(vbNullString, "Untitled - Notepad")
, though if you had other windows with the same titlebar caption that could cause a problem.
If you search for Enumerate Windows I think you should find examples on how to get a list of all open windows, their captions, classnames and handles. for classname you'd use the GetClassName API.
Tags for this Thread
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
|