joepesce Posted February 14, 2016 Posted February 14, 2016 Hi I'm making a simple script to send some hotkeys to control vmware software, but every function with CTRL + key doesn't seem to work for example: Run("C:\Program Files (x86)\VMware\VMware Workstation\vmware.exe") Sleep(3000) WinActivate("VMware Workstation") ControlSend("VMware Workstation", "", 10002, "^o") Sleep(1000) ClipPut("C:\006\006.vmx") Send("^v") Send("{ENTER}") Sleep(3000) WinActivate("VMware Workstation") ControlSend("VMware Workstation", "", 10002, "^b") Sleep(50000) ControlSend("VMware Workstation", "", 10002, "^e") please anyone can help me?
AutoBert Posted February 14, 2016 Posted February 14, 2016 Have you tried it manuel with fingers on Keyboard? Did this work?
Developers Jos Posted February 14, 2016 Developers Posted February 14, 2016 What is control 10002 you are sending this to? Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
joepesce Posted February 14, 2016 Author Posted February 14, 2016 10002 is the box on the left when you open vmware
0manko Posted February 15, 2016 Posted February 15, 2016 Try this Send("{CTRLDOWN}") ControlSend("VMware Workstation", "", 10002, "o") Send("{CTRLUP}")
InunoTaishou Posted February 15, 2016 Posted February 15, 2016 Wait.... You're just sending a path to the Open dialog. Why not just use ControlSetText? Also I'm pretty sure if you use Run("C:\006\006.vmx") it should automatically open the .vmx in the vmware. And finally, I'm sure there's a command line parameter you can launch vmware with to automatically open that machine. If I had to guess ShellExecute("Vmware exe", "C:\006\006.vmx", "directory to vmware") Here are the command line parameters you can pass to vmware.exe https://pubs.vmware.com/workstation-9/index.jsp?topic=%2Fcom.vmware.ws.using.doc%2FGUID-7369457F-FE1D-40FE-97B6-B29CA4916CCD.html
hoelldrio Posted February 18, 2016 Posted February 18, 2016 try #RequireAdmin at the beginning of your code.
ViciousXUSMC Posted February 18, 2016 Posted February 18, 2016 You already have it active, try just Send instead of Control Send.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now