Portnoy1982 Level: Trainee
 Registered: 30-08-2006 Posts: 1
|
Help with SendMessage
Hi guys, I absolutely need your help
First of all I say that i'm italian and my english isn't very well so try to understand what i say
Ok that's my problem
I'm creating an application in VB.net that, by clicking on a button, saves on the clipboard the selected text and automatically pastes it into an opened external windows for example the notepad.
I know that i must use the API function but I don't know how.
I declare the SendMessage function and I use it in this way.
(this is the handler of the button that copies and pastes the text)
Dim fm As New Process, h As Long, mex As String
For Each fm In Process.GetProcesses
If fm.ProcessName = "wordpad" Then
h = fm.Handle
mex = ListDM.SelectedItem.ToString
Clipboard.SetText(mex)
SendMessageByString(h,WM_SETTEXT,mex)
'MsgBox("operazione riuscita")
End If
Next
but this doesn't produce what i'm trying to do
can someone help me please?
|