Results 1 to 24 of 24

Thread: SendKey to other process

Hybrid View

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2010
    Posts
    13

    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:
    1. nPadHwnd = FindWindow("notepad", "Untitled - Notepad")

    Class: notepad
    Windows name: Untitled - Notepad

    But how i get class of an program?

  2. #2
    VB For Fun Edgemeal's Avatar
    Join Date
    Sep 2006
    Location
    WindowFromPoint
    Posts
    4,255

    Re: SendKey to other process

    Quote Originally Posted by pekeltje View Post
    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
  •  



Click Here to Expand Forum to Full Width