Sendkeys Alt+Tab?

Rusty

Registered User.
Local time
Today, 18:50
Joined
Apr 15, 2004
Messages
207
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
:D

Code:
SendKeys "{Alt} & {Tab}"
 
What window are you trying to switch to? Why do you want to switch windows?
 
It's all right - I got it working using:

SendKeys "%{TAB}", True

Cheers,

Rusty
:D
 
I suggest you learn how to use the AppActivate command. The SendKeys method is messy and could provide unexpected results.
 

Users who are viewing this thread

Back
Top Bottom