Results 1 to 7 of 7

Thread: Sendkey Number Pad?

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 1999
    Posts
    482
    Hey, i am making a program to sendkeys to a program.
    But does anyone know how to send a key from the NUMBER PAD?
    IE, send the keypad number 5, how would you do that?


  2. #2
    Lively Member
    Join Date
    Jun 1999
    Posts
    120
    use SendKeys

    Code:
    SendKeys "{5}"

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 1999
    Posts
    482
    not the numbers that are above to Letters, but you know like most keyboards have the KEY-PAD or NUMBER Pad they call it.
    Its to the very right side of the keyboard, where Number lock is.

    IS there a way to access these?

  4. #4
    Hyperactive Member
    Join Date
    Jun 1999
    Posts
    308
    Hi, there.

    Have you tried SendKeys "{NUMLOCK}5"?

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 1999
    Posts
    482
    doesn't that hit Num lock then hit 5?

    but that is on the numbers....?

    I mean the number pad..

  6. #6
    Lively Member
    Join Date
    Sep 2005
    Posts
    105

    Re: Sendkey Number Pad?

    hi there, im also doing a numpad. Tried setting sendkeys "{NUMLOCK}" but doesnt switch on my numlock. Any idea why?

  7. #7
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Sendkey Number Pad?

    vbKeyNumpad0 through vbKeyNumpad9 are the key code constants for the numeric key pad. Try those.

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