Sign in to follow this  
Followers 0
Matej

Windows 8 - Alt+Tab emulation

7 posts in this topic

I'm trying to make an AutoIt script that would quickly (instantly) switch between metro and standard apps on Windows 8.

My first try was using WinActivate. While this worked, it was slow. When you are inside metro, it will play animation, switch to empty desktop and then switch to program you want. So not exactly what I want.

My next (and current) idea is to emulate ALT+TAB on keyboard since this switches instantly. However it does not seem to work:

Send("{ALTDOWN}")
Send("{TAB}")
Send("{ALTUP}")

Above code works fine on Windows 7 (switches to next app), but nothing happens when I run it on Win8 PC. I have tried compiling it and running it as admin, but nothing helps.

Is there a way I could make this code work for Windows 8?

Share this post


Link to post
Share on other sites



#3 ·  Posted (edited)

I want to use metro.

EDIT: Now that you have mentioned it, Send("#x") also does nothing.

Edited by Matej

Share this post


Link to post
Share on other sites

I want to switch from metro application to desktop application instantly using AutoIT.

Send("{LWIN}") works in desktop and start screen, but fails to work in metro applications.

Share this post


Link to post
Share on other sites

I was also stuck with this problem in Windows 8. I found an alternate solution.

Instead of trying to do an alt+tab. I captured the position of the application buttons in the task bar. And I simulated a click on each of them on a loop (either linear or random).

So I was able to get back to the alt+tab behavior.

I'm trying to make an AutoIt script that would quickly (instantly) switch between metro and standard apps on Windows 8.

My first try was using WinActivate. While this worked, it was slow. When you are inside metro, it will play animation, switch to empty desktop and then switch to program you want. So not exactly what I want.

My next (and current) idea is to emulate ALT+TAB on keyboard since this switches instantly. However it does not seem to work:

Send("{ALTDOWN}")
Send("{TAB}")
Send("{ALTUP}")

Above code works fine on Windows 7 (switches to next app), but nothing happens when I run it on Win8 PC. I have tried compiling it and running it as admin, but nothing helps.

Is there a way I could make this code work for Windows 8?

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

As Matej mentions and I confirm, Send("#x") does nothing. Is Send broke in windows 8 for this sequence?

Edited by ahha

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0