Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I wish to change the way I tab between programs in windows 7. So I'd like to press PrintScreen and then use the arrows to choose program. So I built this script

{PrintScreen}::
Send AltTAB
Send {TAB down}
return

But it doesn't work. Please tell me why.

share|improve this question
    
What are you planning, will it work with PrintScreen button pressed or Released ? –  Lamb Sep 1 '13 at 11:36
add comment

1 Answer

Solution 1 -

PrintScreen & Right::AltTab
PrintScreen & Left::ShiftAltTab

Keep Prt Scr pressed and Use arrows to navigate.
Release Prt Scr to switch to selected window.

Solution 2 -

Press Prt Scr and Release it.
Then use arrow keys to navigate to desired window.
Then press Enter to switch to the window selected.

PrintScreen::
Send {Alt Down}
Send {Tab}
Sleep 5000  ; Keep it down for five seconds.
Send {Alt Up}
return

There is one problem with the script - that it keeps Alt pressed for a specified amount of time (here 5 seconds) in order to emulate a user holding the button down, so if you don't select anything within 5 sec, it will switch to the selected window.

share|improve this answer
    
Thanks. Can I make solution 2 use something like wait until I press enter? –  user1603548 Sep 8 '13 at 20:24
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.