Results 1 to 8 of 8

Thread: SendKeys (A2K)

  1. #1
    5 Star Lounger
    Join Date
    Nov 2001
    Location
    Toronto Canada
    Posts
    920
    Thanks
    0
    Thanked 0 Times in 0 Posts

    SendKeys (A2K)

    I like getting hate mail, so that
    Cheers,
    Andy

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: SendKeys (A2K)

    In a quick test, %F does open the File menu. What is Alt+Q supposed to do?

  3. #3
    5 Star Lounger
    Join Date
    Nov 2001
    Location
    Toronto Canada
    Posts
    920
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: SendKeys (A2K)

    Hans,

    No laughter allowed here, but, by using one hand only, the DOS-loving mouse-hating user can press Alt-Q and QUIT whatever form he/she is in. Please don't shoot the messenger/poster.
    Cheers,
    Andy

  4. #4
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: SendKeys (A2K)

    Have you assigned Alt+Q to a macro in AutoKeys? It's not a built-in keyboard shortcut in Access, as far as I can tell.

  5. #5
    5 Star Lounger
    Join Date
    Nov 2001
    Location
    Toronto Canada
    Posts
    920
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: SendKeys (A2K)

    Yes I did, and got the message:

    The Key or Key Combination %{Q} in AutoKeys
    has invalid sytax or
    is not allowed

    Which caused me to post this question. Like, make your minds, which is it, Invalid or Not Allowed.
    Cheers,
    Andy

  6. #6
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: SendKeys (A2K)

    You cannot assign Alt+letter using AutoKeys.

    Since Alt+Q hasn't been assigned to a macro, calling it using SendKeys will have no effect.

    I assume that you are aware that both Ctrl+F4 and Ctrl+W will close the active window. They can be pressed with one hand.

    You can put a command button on a form that closes the window (using DoCmd.Close). If you precede one of the characters in the caption of the command button with an ampersand &, that character will be underlined, and the user can activate the button by pressing Alt+character. So for example, if you enter &Close in the Caption property, the displayed caption will be Close, and the user can press Alt+C to close the window.

  7. #7
    Super Moderator
    Join Date
    Jun 2002
    Location
    Mt Macedon, Victoria, Australia
    Posts
    3,993
    Thanks
    1
    Thanked 45 Times in 44 Posts

    Re: SendKeys (A2K)

    When I look in Help I get this list of allowable combinations.
    It looks like the problem is not with the SendKeys, but with the autokeys.
    (Even though this says it is a list for Sendkeys, Help says it is the list of "allowable key combinations for Autokeys"
    Regards
    John



  8. #8
    5 Star Lounger
    Join Date
    Nov 2001
    Location
    Toronto Canada
    Posts
    920
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: SendKeys (A2K)

    Hans & John,

    Thank you both for your help. I was aware of most of this stuff, but as we all know, curiosity "mentally maimed" the programmer.
    Cheers,
    Andy

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •