Hey my peeps, does anyone know how to get the menus events from like paltalk rooms
like this the code i am working with, but i am stock for now lol look at this
- Code: Select all
Option Explicit
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Private Declare Function GetMenu Lib "user32" (ByVal hwnd As Long) As Long
Private Declare Function GetMenuItemID Lib "user32" (ByVal HMenu As Long, ByVal nPos As Long) As Long
Private Declare Function GetSubMenu Lib "user32" (ByVal HMenu As Long, ByVal nPos As Long) As Long
Private Declare Function PostMessage Lib "user32" Alias "PostMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long
Private Hwindow As Long
Private HMenu As Long
Private HSubMenu As Long
Private MenuID As Long
Private Sub Command3_Click()
Hwindow = FindWindow(vbNullString, "my window class")
HMenu = GetMenu(Hwindow)
HSubMenu = GetSubMenu(HMenu, Level1)
MenuID = GetMenuItemID(HSubMenu, Level2)
PostMessage Hwindow, &H111, MenuID, 0
End Sub
I just like wanna use the close option from the menu, like if you go to file in a room there it gives you the choice to close group, i need that,
I am trying to create a new room fu**er lol this got me stuck





