Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 2004
    Location
    United Kingdom
    Posts
    56

    Unanswered: Sendkeys Alt+Tab?

    Hey Guys,

    I have a button on a form and along with a few other bits and pieces I need it to perform the equivalent of holding down the Alt key and pressing the Tab key (to switch between active windows).

    I have tried using the code below but it doesn't work. Any ideas?

    Cheers,

    Rusty


    Code:
    SendKeys "{Alt} & {Tab}"

  2. #2
    Join Date
    Oct 2003
    Location
    Ger
    Posts
    1,969
    Provided Answers: 1
    Did you try
    SendKeys "%{TAB}", True

  3. #3
    Join Date
    Apr 2004
    Location
    United Kingdom
    Posts
    56
    Brilliant - that worked a treat!!

    Thanks,

    Rusty

  4. #4
    Join Date
    Oct 2003
    Location
    Ger
    Posts
    1,969
    Provided Answers: 1
    ąGood luck

Posting Permissions

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