VMware Communities
jokke
Expert
Expert

Sending commands (keystrokes) from host to guest with AutoIt

I just want to report an alternative way of running commands inside the guest . By simulating a sequence of keystrokes, I could execute the command "ping localhost". This is sent through the "window", meaning that focus must first be given to the application window. In this example the guest is also Windows OS.

Code:

WinActivate("XP Fresh", "")

Send("" & "{LCTRL up}" & "" & "{LWIN up}" & "ping localhost" & "")

In this particular test, the vm was named "XP Fresh" and running inside vmware player.

Worth noting that commicating directly to the controls was not successful.

Joakim

0 Kudos
0 Replies