Results 1 to 2 of 2

Thread: SetWindowPos

  1. #1

    Thread Starter
    Member
    Join Date
    May 2001
    Location
    Malaysia
    Posts
    43

    SetWindowPos

    These are my steps:

    1) Set my VB form always on top using SetWindowPos.
    2) Call another application, X.
    3) Get its handle, using FindWindow.
    4) Set foreground window to X, using SetForegroundWindow to let X receives all the keystrokes.
    4) Send keystrokes to X using SendKeys.

    Not all the keys will be received by X.
    But if I eliminate step 1, that is not to set my VB form always on top, it works perfectly (all the keystrokes are received by X) !

    Can anyone figure out why this is happenning?

    Please guide !

    Thanks a lot in advance!!!

    Have a nice day!
    Ben Chin

  2. #2
    PowerPoster Chris's Avatar
    Join Date
    Jan 1999
    Location
    K-PAX
    Posts
    3,238
    Better us keyboard hooking and sure you'll not miss any keystroke

    regards,
    Attached Files Attached Files

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