Jump to content

send CTRL ALT command to Vmware Workstation vm


Recommended Posts

hi all

 

i am new to Autoit so please be gentle :)

 

i am trying to create script which will open virtual machine automatically in Vmware Workstation in Fulll screen and after that send CTRL-ALT m which will activate multi monitor support for that machine.

 

starting the virtual machine is easy as you can use switch with vmware.exe for that, for example:

"C:\Program Files (x86)\VMware\VMware Workstation\vmware.exe" -X E:\vm\Win8.1-test1\Win8.1-test1.vmx

so i created a script that does that, and was hoping sending Ctrl Alt M was also that easy but no it was not.

this is the script i created

Run("C:\Program Files (x86)\VMware\VMware Workstation\vmware.exe -X E:\vm\Win8.1-test1\Win8.1-test1.vmx")
Sleep(30000)
WinActivate("[TITLE:Win8.1-test1 - VMware Workstation]", "")
Send("!^m")

i am putting in 30 seconds delay to give the vm time to boot up and start vmware tools which is needed.

i am not able to get the focus on the virtual machine, the focus is on the Vmware program as i can send CTRL N for new machine and that pops up successfully.

does someone have idea what i am doing wrong?

 

 

BR

Ingvar

 

 

 

 

 

 

 

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...