Create a desktop shortcut to trigger Alt+Tab or Windows+Tab?

0

1

I work through a VPN, and I RDP from my laptop into my main machine all the time.

Alt+Tab ⇥ and Win+Tab ⇥ don't work for me. The alternative shortcuts described here don't work for me.

Not sure if it's because of my laptop, or because it's a web RDP and not native RDP.

Is there a way I can create a desktop shortcut that I can click to trigger the effect of Alt+Tab or Win+Tab?

I do have AutoHotKey installed. Can I use a script to do this?

Smeegs

Posted 2016-08-10T15:53:55.223

Reputation: 103

Answers

2

This Vbscript works fine here. I tested in RDP desktop though - both machines running Windows 10.

set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.SendKeys "^%{TAB}"

Save the file with .vbs extension, such as alttab.vbs and place it on the desktop. Double-clicking it would show the Alt+Tab window (and the Alt Tab switcher screen remains until you select a program, or dismiss it.)

To send WinKey, you need NirCmd or any other program like AHK. With NirCmd, here is the command to simulate WinKey + Tab

nircmd.exe sendkeypress lwin+tab

NirCmd Command Reference - sendkeypress

w32sh

Posted 2016-08-10T15:53:55.223

Reputation: 8 611

Thanks, That's exactly what I'm looking for. it's working on my local machine, but not on the remote one. It might have something do with the fact that it's running Server 2012 R2. I'm looking into that right now. – Smeegs – 2016-08-10T16:21:24.963

Tried option 2 above? – w32sh – 2016-08-10T16:26:22.530

Ugh, it's blocked by my company. I'll have to give it a try later. – Smeegs – 2016-08-10T16:28:12.417

Got it downloaded. Do I just call that from a batch file? – Smeegs – 2016-08-10T16:32:47.543

You may create a normal desktop shortcut to it. Batch would work fine as well. – w32sh – 2016-08-10T16:34:19.977

Thanks... it works on windows 10 and not server 2012. Same as other example :( I'll dig into server 2012 and see if I can find the reason these are blocked. – Smeegs – 2016-08-10T16:36:01.963

Either way, both your solutions are excellent. Thanks so much for your help. No matter what, you got me 5 steps closer to a solution. – Smeegs – 2016-08-10T16:38:05.153

Glad the info helped. Don't have a Server 2012 machine here to test, unfortunately. – w32sh – 2016-08-10T16:39:23.833