当前位置:编程学习 > VB >>

QQ快闪 VB源码

Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hWnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
Private Const WM_COMMAND = &H111

Private Sub Command1_Click()
    Dim hWnd As Long
    hWnd = FindWindow("#32770", "")
    SendMessage hWnd, WM_COMMAND, "12479", 0
End Sub

Private Sub Command2_Click()
    Dim hWnd As Long
    hWnd = FindWindow("#32770", "")
    SendMessage hWnd, WM_COMMAND, "12514", 0
End Sub
补充:软件开发 , Vb ,
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,