Hola
seba123neo gracias por tu respuesta.
Mira hice algo así:
Código PHP:
'ClinCheck Comments es el nombre de la ventana'
hwnd1 = FindWindow(vbNullString, "ClinCheck")
'Este "Edit" es el textbox de la ventana ClinCheck, supongo'
hwnd2 = FindWindowEx(hwnd1, 0, "Edit", vbNullString)
'Cuando sigue esta línea, me da un error'
SendMessageSTRING(hwnd2, WM_SETTEXT, 0, "texto")
El error es el siguiente:
A call to PInvoke function 'Send Text!Send_Text.Form1::SendMessageSTRING' has unbalanced the stack. This is likely because the managed PInvoke signature does not match the unmanaged target signature. Check that the calling convention and parameters of the PInvoke signature match the target unmanaged signature.
Me guié de un código que creo tu pusiste en esta dirección:
http://www.canalvisualbasic.net/foru....asp?TID=34737
A ver si ando equivocado en algo o que puede ser?