Results 1 to 2 of 2

Thread: Sendkeys replacement?

  1. #1

    Thread Starter
    Frenzied Member MerrionComputin's Avatar
    Join Date
    Apr 2001
    Location
    Dublin, Ireland
    Posts
    1,616

    Sendkeys replacement?

    Has anyone done a replacement for sendkeys using either SendMessage or Postmessage and the WM_KEY* or WM_CHAR messages?

    If so - how do you create the lParam component of the message?

    The documentation says:
    Bits 0-15 is the number of repetitions
    Bits 16-23 is the OEM scan code of the char
    Bit 24 is set if it is an extended key
    Bit 29 is set if ALT is pressed
    Bit 30 is set if the key is already down
    Bit 31 is set on key up, zero on key press
    Also - do you send 2 messages - one key down and one up for each character?

    Thanks in advance,
    Duncan
    ----8<---------------------------------------
    NEW - The .NET printer queue monitor component
    ----8<---------------------------------------
    Now with Examples of use

  2. #2

    Thread Starter
    Frenzied Member MerrionComputin's Avatar
    Join Date
    Apr 2001
    Location
    Dublin, Ireland
    Posts
    1,616
    Never mind - this is a sufficient work around.
    ----8<---------------------------------------
    NEW - The .NET printer queue monitor component
    ----8<---------------------------------------
    Now with Examples of use

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