Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 167985

Re: start menu and task bar missing when RDP into win vm in unity mode

$
0
0

bgarner wrote: I would be happy with a way to script changing the vm from unity to single window mode. Ideally this would be from within the guest but a host script would also work.

 

The following is a basic AppleScript example you'd run on the Host.

 

tellapplication "System Events"

     ifUI elements enabledthen

          tellapplication "VMware Fusion" toactivate

               tellapplication "System Events"

                    tellprocess "VMware Fusion"

                         clickmenu item "Windows XP Professional" ofmenu "Window" ofmenu bar 1

                         clickmenu item "Unity" ofmenu "View" ofmenu bar 1

                    endtell

               endtell

     else

          tellapplication "System Preferences"

               activate

               setcurrent panetopane "com.apple.preference.universalaccess"

               display dialog "UI element scripting is not enabled. Check \"Enable access for assistive devices\" then rerun script."

          endtell

     endif

endtell


Obviously you'd change "Windows XP Professional" to the name shown on the Window menu of VMware Fusion to reflect the correct target Virtual Machine.

 

If you want to put it back in Unity using AppleScript then change "Single Window" to "Unity" and save it under a different name.

 

BTW While VMware Fusion does include an AppleScript Dictionary I do not know if VMware ever finally officially supported its use and is why using "System Events" to to tell VMware Fusion to click the menu is one way of doing what you asked.

 

Message was edited by: WoodyZ  Since this requires the "Enable access for assistive devices" check box to be checked in Accessibility under OS X System Preferences I added code to handle that since it is not enabled by default.


Viewing all articles
Browse latest Browse all 167985

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>