Results 1 to 6 of 6

Thread: SendKey Ctrl+Ctrl+A+Enter does not work..

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 1999
    Posts
    100

    Angry

    Hi.. I'm trying to emulate the combination:
    Ctrl, Ctrl, "A", Enter
    I'm not trying to press all keys at once. I want to press them on by on.

    I tryed to use this code:
    SendKeys "^^A~"

    but VB does not like this.. Any idéas?

    [Edited by rancor on 06-02-2000 at 05:43 AM]

  2. #2
    Addicted Member
    Join Date
    Apr 2000
    Location
    Sheffield, England.
    Posts
    136
    There's only one control code for both CTRL keys so you can't detect when they're both being pressed simultaneously.

    (As far as I know)

  3. #3
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649
    Try this:
    Code:
    SendKeys "{^ 2}A~", True
    Good luck!

  4. #4

    Thread Starter
    Lively Member
    Join Date
    May 1999
    Posts
    100
    nope.. Did not work..

    Does not that code "puch" the ^-button two times?
    SendKeys "{^ 2}A~", True

    any other idéas?..



  5. #5
    Lively Member
    Join Date
    Mar 2000
    Location
    Fort Lauderdale, FL USA
    Posts
    112
    To press them one at a time (which is what I think you're asking) do this:

    Sendkeys "{^ 2}", true
    Sendkeys "A", True
    SendKeys "{Enter}", True
    Damonous

  6. #6

    Thread Starter
    Lively Member
    Join Date
    May 1999
    Posts
    100
    If I use that code I got at printout like thoi:
    ^^A

    Is the ^-char what the Ctrl look's like if you print the ascii code?

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