Any way to toggle between local desktop and AWS Workspace in full screen view using code or a script?

amazon-web-services, autohotkey

Solution

I found a way to switch running Windows 10

- Open a new Desktop (WinKey + Ctrl + D)

- Start Amazon Workspace there - in Full screen mode

- To switch back to local desktop, open "About" pop up in AWS Now, click on WinKey + Tab .. this allows you to select different Desktops.

- Switch to your Original Desktop

- To switch back to AWS simply press WinKey + Tab again and select Desktop running AWS

Problem

I run an AWS Workspace in full screen view, and I have my various windows and applications spread across two large monitors in Extended Desktop mode. Works just fine. But how do I toggle over to my local desktop using some automated code or script? `Alt-Tab` merely cycles between open windows in the WS desktop, so this AutoHotKey command won't work: ``` SendKeys !{tab} ``` I know I can press the AWS WS hotkey `Ctrl-Alt-Enter` to quickly exit full-screen view and put me in a window. But even still, `Alt-Tab` merely cycles between open windows in the WS window and not among the local open windows. How do I jump out of that window by keyboard? And, even worse, when I go back to full screen view, all my open windows have been re-arranged to fit in the window view. Full screen apps are still full screen-ish, but locked in at the restored window size. I have to click the restore button twice - once to restore down from the pseudo-full screen, and again to go back to true full screen. I'd rather toggle out while remaining in full-screen. Can it be done? So, is there a hotkey I can script with AutoHotKey or some other facility? Or anything I can program in VB, JS or AHK to do that? I also note that the WS window does not respond to the normal Windows hotkeys (like `Alt-Space` for the control bar, `Win+Arrow` to snap/maximize windows, etc.) so I'm just looking how to get started. TIA EDITS: Because this question was closed as not being "code" related, I have clarified throughout that I am looking for a solution using code. Thank goodness it is a trivial matter to take the many helpful suggestions collected here and convert them easily to code in the language of your choice, just as I show above in the AutoHotKey code example that doesn't work. And the scripting of my "kludge" works if not an ideal coding solution: ``` CoordMode, Mouse, Screen MouseMove 3199, 1060 Sleep, 250 Click Send !{tab}` ```

Original source