Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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}`
like image 201
PGilm Avatar asked May 02 '17 21:05

PGilm


People also ask

What are the two running modes for Amazon WorkSpaces?

To make hourly billing possible, Amazon WorkSpaces now operates in two running modes – AutoStop and AlwaysOn. The AutoStop running mode allows you to pay for your Amazon WorkSpaces by the hour.

Can a user have multiple AWS WorkSpaces?

Each WorkSpace is assigned to a single user and cannot be shared by multiple users. By default, only one WorkSpace per user per directory is allowed.

How do I resize my Amazon WorkSpace?

To change the volume sizes of a WorkSpaceIn the navigation pane, choose WorkSpaces. Select the WorkSpace and choose Actions, Modify WorkSpace. To increase the size of the root volume or user volume, choose Modify Volume Sizes and enter the new value. Choose Modify.


2 Answers

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
like image 73
Manfred Just Avatar answered Sep 17 '22 15:09

Manfred Just


I have a found an solution to this, not quite a hotkey but it does allow you to leave AWS fullscreen temporarily and have the window arrangement stay the same when you return.

  • bring mouse to the top of the screen so that the Amazon WorkSpaces menu bar appears.
  • click on Amazon WorkSpaces>About Amazon WorkSpaces. This will bring up the About Amazon WorkSpaces menu
  • click on either "Download Latest Client" or "Terms and Conditions" and this should bring you back to your local machine, though it will open an AWS website.
  • To return to AWS, simply click the client icon on your local system tray, though you will want to close the About Amazon WorkSpaces window first since if left open, it will not work the next time.
like image 23
Carlisle Haworth Avatar answered Sep 19 '22 15:09

Carlisle Haworth