Código vb:
Que está mal?, Gracias Ver original
If isRuning("notepad") Then Dim notepad As ArrayList = New ArrayList(Process.GetProcessesByName("notepad")) For Each i As Process In notepad Dim NotepadHandle As Long = FindWindow(vbNullString, i.MainWindowTitle) Dim EditHandle As Long = FindWindowEx(NotepadHandle, 0, "Edit", vbNullString) RichTextBox1.Text = SendMessage(EditHandle, &HC4, 1, Nothing) Next End If