You are welcome





Public Function DOTALLCOMMAND()
Dim X As Long
Call GetPalWindow
X = FindWindow("my window class", vbNullString)
Dim TheWindow As Long
Dim aMenu As Long
Dim mCount As Long
Dim LookFor As Long
Dim sMenu As Long
Dim sCount As Long
Dim LookSub As Long
Dim sID As Long
Dim sString As String
TheWindow = X
aMenu& = GetMenu(TheWindow)
mCount& = GetMenuItemCount(aMenu&)
For LookFor& = 0& To mCount& - 1
sMenu& = GetSubMenu(aMenu&, LookFor&)
sCount& = GetMenuItemCount(sMenu&)
For LookSub& = 0 To sCount& - 1
sID& = GetMenuItemID(sMenu&, LookSub&)
sString$ = String$(100, " ")
Call GetMenuString(sMenu&, sID&, sString$, 100&, 1&)
If InStr(LCase(sString$), LCase("Remove All Mics")) Then
Call SendMessageLong(TheWindow, WM_COMMAND, sID&, 0&)
Exit Function
End If
Next LookSub&
Next LookFor&
If X = 0 Then
Exit Function
End If
End Function
Public Function UNDOTALLCOMMAND()
Dim X As Long
Call GetPalWindow
X = FindWindow("my window class", vbNullString)
Dim TheWindow As Long
Dim aMenu As Long
Dim mCount As Long
Dim LookFor As Long
Dim sMenu As Long
Dim sCount As Long
Dim LookSub As Long
Dim sID As Long
Dim sString As String
TheWindow = X
aMenu& = GetMenu(TheWindow)
mCount& = GetMenuItemCount(aMenu&)
For LookFor& = 0& To mCount& - 1
sMenu& = GetSubMenu(aMenu&, LookFor&)
sCount& = GetMenuItemCount(sMenu&)
For LookSub& = 0 To sCount& - 1
sID& = GetMenuItemID(sMenu&, LookSub&)
sString$ = String$(100, " ")
Call GetMenuString(sMenu&, sID&, sString$, 100&, 1&)
If InStr(LCase(sString$), LCase("Give Mics to Everyone")) Then
Call SendMessageLong(TheWindow, WM_COMMAND, sID&, 0&)
Exit Function
End If
Next LookSub&
Next LookFor&
If X = 0 Then
Exit Function
End If
End Function
'works whether ur admin or not
Public Function viewUid()
Dim window As Long
Call GetPalWindow
window = FindWindow("my window class", vbNullString)
PostMessage window, WM_COMMAND, 372, 1
End Functionlocohacker wrote:I like those subjestions
the first one i think i can do, like add an option time frame for each question, thas cool
the heavy loading on roomswell thats a mess if u check the code is on the vb forums is huge lol, dont know if i can do that
lol man u go great ideas let try to implement them.



Users browsing this forum: No registered users and 0 guests