Hey all, i am trying to grab some text input from notepad thats within a VMWare virtual machine running Windows 7. I can get a handle of the VMWare form but nothing within it (the windows 7 OS running inside it).
This is the code i am currently using:
I am getting a value for FromHwnd just fine, but once it goes into the EX, i get no value. The **MKSEmbedded** is the window inside the VMWare that Windows 7 is running in.Code:Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long Private Declare Function FindWindowEx Lib "user32" Alias "FindWindowExA" (ByVal hWnd1 As Long, ByVal hWnd2 As Long, ByVal lpsz1 As String, ByVal lpsz2 As String) As Long Private Sub Commandcc_Click() Dim FromHwnd As Long Dim hWin As Long Dim count As Integer FromHwnd = FindWindow("VMUIFrame", vbNullString) hWin = FindWindowEx(FromHwnd, 0&, "MKSEmbedded", "") End Sub
Is there something i am missing or need to do in order to grab that window inside VMWare?
Thanks!
David




Reply With Quote