73

I use alt+tab all day long to switch between windows. When I'm working remotely, I'll use Remote Desktop to log in to my Windows 7 PC at work.

From the host machine, it's simple to alt+tab to switch to get to the remote machine.

However, on the remote machine, alt+tab doesn't allow me to switch back to the host machine, forcing me to use the mouse (gasp!). To be clear, I still want to see the guest machine's applications when I use alt+tab on the guest machine. I just want to be able to see the host machine as one of the options in alt+tab while I'm remoted in.

Is there a way to be able to alt+tab back to the host machine from the remote machine, perhaps via a 3rd-party add-on?

16 Answers16

52

Use ctrl+alt+break to restore the Remote Desktop window, so it is no longer full screen.

Then use alt+tab to switch between applications on the local machine.

When you want to go back to the remote machine, alt+tab to it, and press ctrl+alt+break to restore it to full screen again.

Garrulinae
  • 1,939
  • 16
  • 26
39

On my system (using windows server 2012 R2), I use ctrl+alt+home to get to the remote desktop bar and then alt+tab to move around the windows on local machine.

28

Alt-Insert works in windowed mode, and is almost the same as Alt-Tab.

Alt-PgDown and Alt-PgUp are also useful.

Nik
  • 467
9

Well the Solution is here - Under Remote connectivity terminal (mstsc),Navigate to third tab

"Local Resources" and Select the first dropdown - Keyboard - "On this computer" This is amazing one and make your work much easier and further can switch between host computer and remote comp (in full screen mode)

But could not navigate into remote machine so in case revert the previous settings of dropdown to old menu and use the shortcut to switch between full screen mode and normal mode of remote PC - Control + Alt + Break.

5

For me following scenario worked properly "Local Resources" and Select the first dropdown - Keyboard - "On this computer" Afterwords you should use Alt+PageUp instead of Alt+Tab

4

WINDOWS 10 2021 :

  • On the Remote Desktop Window :

    Use Ctrl + Alt + Home to show the toolbar, then TAB, TAB, then hit ENTER.

  • On the local machine :

    Use Alt + TAB to get back to the Remote Desktop Window.

It's a quick solution to keep the Alt + TAB working on the Remote Desktop Window.

zx485
  • 2,337
Kubadev
  • 141
3

This can be done with one keypress by using autohotkey.

Capslock::                              ; replace by ^Capslock to use Control+Capslock
    WinGet, id, List,,, Program Manager
    Loop, %id%
    {
        this_id := id%A_Index%
        WinActivate, ahk_id %this_id%
        WinGetTitle, this_title, ahk_id %this_id%
        if(this_title!="")
            break
    }
    WinActivate, ahk_id %this_id%
    Send, {Alt Down}{Tab}{Alt Up}
Return

The script above will alt-tab to the host computer whenever you press caps lock. FYI, the reason caps lock is used is because RDP really messes with autohotkey scripts and capslock is one of the few keystrokes that get sent to the home computer rather than the guest computer.

To get this to work, download autohotkey, save this script as a .ahk file and execute it on the home computer.

If you want to retain control over your capslock key, replace "Capslock" by "^Capslock" in the second line.

Danferno
  • 141
3

New Version

Windows 10 Home, Windows 10 Home

Nothing should go wrong, but since this grabs Left Mouse Button and Enter, probably save all your work first.

I was pretty awful at AutoHotKey when I wrote this. This utility is one of the things that got me learning AHK, although hough I never took it very far.

This version of the script functions much better. It's also adapted from my script to allow a VirtualBox Virtual Machine to do the same thing

While RDC is open and focused, it uses ALT+Tab to trigger ALT+Page Down which is built into Terminal Services to activate the server's 'Task Switcher'.

#SingleInstance, Force
hostkey = RCTRL                                            ; set this to your VirtualBox HOSTKEY
boxMode := ""
Hotkey, <#Tab, WinTabbing
Hotkey, >#Tab, WinTabbing
Return

TabFinish: Send, {ALT UP} RDCKeysState("Off") Return

Tabbing: Send, {Right} Return

WinTabbing: WinGetTitle, Title, A StringRight, TitleEnd, Title, 25

RDCKeysState("On") If (TitleEnd = "Remote Desktop Connection") and (not Title = "Remote Desktop Connection") { ; RDC mode, but not the launcher window

Send, {Alt down}{PgDn}                                 ; Press and hold alt, and press pgdn

} Else { ; Host mode

Send, {ALT Down}{TAB}                                  
Sleep, 200                                             ; Sleep to wait a split-second for Alt-Tab window to appear
iter := 0                                              ; loop tracker
Loop {
  iter := iter+1
  if (!WinExist(&quot;Task Switching&quot;) Or iter &gt; 60) {      ; If Alt+tab is gone, or it's been 30 seconds
    Send, {ALT UP}
    Break
  }
  Sleep, 500
}

} Return

RDCKeysState(toggle) { ; This function maps all the ways that a user might end the alt-tab box. Hotkey, Enter, TabFinish, %toggle% ; Map Enter, Click, and their alt-counterparts to TabFinish() Hotkey, !Enter, TabFinish, %toggle% Hotkey, LButton, TabFinish, %toggle% Hotkey, !LButton, TabFinish, %toggle% Hotkey, LWIN UP, TabFinish, %toggle% Hotkey, RWIN UP, TabFinish, %toggle% Hotkey, *Tab, Tabbing, %toggle% }

; if you get the error 'could not close the previous instance of the script,` ; while ever trying to reload the script, you need to right click it and select ; 'Run As Administrator'

Old Version

Windows 10 Home, and Windows 2012 Server

I wanted functionality to do both, so I wrote an AutoHotKey script for my local machine.

I gave my local computer full access to Windows Key Commands even while RDC is maximized

RDP Options. local resources tab

And then wrote an AutoHotKey script (I am not well-versed in it) that captured WIN+TAB (#Tab), while RDC is open and then uses that and the ALT+Page Down built into Terminal Services to activate the server's ALT+Tab. Once it's open, you can navigate with arrow keys and enter/click to select.

If you can improve upon this, please do, and share.

#persistent
#Tab::WinTabbing()
return

WinTabbing() { WinGetTitle, Title, A ; Get Title StringRight, TitleEnd, Title, 25 ; RDC is 25 letters long If (TitleEnd = "Remote Desktop Connection") ; Check that an RDC is active. This will probably have ; issues with the inital "connect to dialog of RDC { Send, {Alt down}{PgDn} ; Press and hold alt, and press pgdn Hotkey, Enter, Entering, On ; Map Enter, Click, and their alt-counterparts to Entering() Hotkey, !Enter, Entering, On Hotkey, LButton, Entering, On Hotkey, !LButton, Entering, On return } } ; There is no return statement at the end of this function, because we want ; Control Tab to work when focused in any other window.

; I tried to map Tab/Alt Tab (because alt is still pressed) to Right arrow ; and Control Tab/Control Alt Tab to left arrow. I was unable to get it to work. ; I left the functions in comments if anyone want to try
; Righting() ; Send, Right ; return ; }

; Lefting() { ; Send, Right ; return ; }

Entering() { Send, {Alt}{Enter} ; Releases Alt, and makes the selection Hotkey, Enter, Entering, Off ; See WinTabbing() Hotkey, !Enter, Entering, Off Hotkey, LButton, Entering, Off Hotkey, !LButton, Entering, Off return }

2

Ctrl + Alt + Break = Break out of remote desktop full screen

If your keyboard doesn't have the Break key, you can use:

Ctrl + Alt + Pause

Once you break out of the Remote Desktop full-screen, you can use

Alt + Tab = navigate to other applications

Windows + Up = full-screen focused application

This is a big productivity boost because you never take your hand off the keyboard to you mouse. If you get really good, you'll never have to use the mouse again :)

Kellen Stuart
  • 618
  • 3
  • 10
  • 20
2

I eventually chose to use the "on this computer" option Josh mentioned and use the Alt+PgUp resp. Alt+PgDown combinations in the remote. You can set this as default by editing the (hidden) Default.rdp:

mstsc /edit %USERPROFILE%\Documents\Default.rdp

I had to set it readonly to prevent it being obscurely changed when connecting to computers I had used before.

TNT
  • 341
0

Try connecting through mstsc (Start->Run->mstsc). I was initially connecting through RDP Client and tried the solution provided above by Josh but it did not work. When I connect using mstsc and applied the solution, it works.

0

I am using Windows 10. None of these worked for me.

I got an answer by trying out everything specified here. To go to RDP from host machine ALT+TAB works and from RDP to host machine Windows+PgDn works.

Dave M
  • 13,250
Sam
  • 1
0

I use MultiDesk as my Remote Desktop Client.

The main advantage is i can see the task bars of both my host computer and also remote computer at the same time and i know what all is open in both of my computers.

And in the background it again uses RDP only, so all the solutions mentioned above will work in MultiDesk also.

Here are the keyboard shortcuts inside MultiDesk window.

Do as suggested by Alexander Gorodetski in one of the answers above so that Alt+Tab or Alt+Shift+Tab remains a tab browser for host machine and use Alt+PgUp or Alt+PgDn for tab browsing inside RDP window.

My suggestion is not to use RDP window in Full Screen Mode as you become blind to your host computer. Use full screen only when you have multiple monitors and you want to use all your monitors for remote machine also.

0

It is possible if you cursor is on the taskbar. So if you want to switch to host computer from remote using nothing but keyboard, first move your cursor to the taskbar (enable mouse cursor movement using keys), and then press Alt+Tab, the remote desktop client will now be just another window that can be switched away from.

0

Use Win+Tab instead of Alt+Tab

I am using Mac guest and Windows host. Win+Tab allowed me to switch application inside Guest (Windows) whereas Alt+Tab allowed me to switch application on Host (Mac)

Punit Pandey
  • 101
  • 1
0

Win Key + Alt + Tab will work.