Results 1 to 2 of 2

Thread: Creating HotKeys

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2000
    Posts
    2

    Question

    When I create a hot key for each of the forms in my program only one of the hot keys wordks the key sequences and the corresponding codes passed to windows are:

    SHIFT M &h16D
    SHIFT E &H145
    SHIFT V &H176
    SHIFT N &H16E

    Am I using the right hex values for each of the key sequences? What else might I be doing wrong?

    Thanxs in Advance Corey

    Training for GURU

  2. #2
    Hyperactive Member
    Join Date
    Jan 1999
    Location
    Rotterdam, Netherlands
    Posts
    386
    The virtual keycodes for a to z and A to Z are the Ascii values, so:
    M = &H4D
    E = &H45
    V = &H56
    N = &H4E

    (you can find them in the winuser.h if you have installed VC++, VK_ constants)
    Hope this helps

    Crazy D

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