vb.net 如何向其他窗口中输入文字?
vb.net 如何向其他窗口中输入文字?
比如要向已经打开的文本文件输入 我爱编程
要如何实现?
sendMessage ???
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Private Declare Function GetWindowThreadProcessId Lib "user32" (ByVal hwnd As Long, ByVal lpdwProcessId As Long) As Long
Dim hwnd As Long
hwnd = FindWindow(vbNullString, "新建")
然后如何向他传送字符串???
[此贴子已经被作者于2006-7-28 0:07:33编辑过]