I am wanting to get a string from one application and open another application and pass it to a label. I know how to find the handle of the new app but am not sure how to reference the other application text box and send the string. Any Ideas?
Printable View
I am wanting to get a string from one application and open another application and pass it to a label. I know how to find the handle of the new app but am not sure how to reference the other application text box and send the string. Any Ideas?
You can use SetWindowText
Public Declare Function SetWindowText Lib "user32.dll" Alias "SetWindowTextA" (ByVal hwnd As Long, ByVal lpString As String) As Long
SetWindowText hwnd, strMyText
------------------
Marty
What did the fish say when it hit the concrete wall?
> > > > > "Dam!"
Thank you. I will try it.
I can set the sindow title but I can't seem to set the string in the text box. I have the textbox handle but can't seem to pass the string/ However, the API brings back a value of 1 which should mean it was successful. Any ideas?