Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Private Declare Function FindWindowEx Lib "user32" Alias "FindWindowExA" (ByVal hwnd1 As Long, ByVal hWnd2 As Long, ByVal lpsz1 As String, ByVal lpsz2 As String) As Long
Private Declare Function SendMessage Lib "user32.dll" Alias "SendMessageA" (ByVal hWnd As Long, ByVal wMsg As Long, ByVal wParam As Long, ByVal lParam As Any) As Long
Private Const WM_SETTEXT = &HC
Private Sub Command1_Click()
Dim hwnd0 As Long
Dim str$
hwnd0 = FindWindow(vbNullString, "的的")
Dim hwnd1 As Long
hwnd1 = FindWindowEx(hwnd0, 0, "ThunderRT6TextBox", vbNullString)
SendMessage hwnd1, WM_SETTEXT, 0, ByVal Text1.Text
End Sub
Private Sub Command2_Click()
Shell "C:\Documents and Settings\Administrator\桌面\的的.exe"
End Sub
这是代码 希望高手帮忙修改一下