by Snoopy1968 » Sat Sep 15, 2007 3:19 pm
tys Loco for some reason mine seems to get to the point where it says proceed to ban
then vb just freeses and doesnt see the Ban User window i cant figure out why
Dim x As Long, editx As Long, button As Long
Dim console As Long
If (Text38 = "") Then
PalAdmin
Text38 = Trim(AdmnConsole)
Else
DoEvents
Timer8.Enabled = False
console = FindWindow("#32770", Text38)
x = FindWindowEx(console, 0&, "ComboBox", vbNullString)
editx = FindWindowEx(x, 0&, "Edit", vbNullString)
Call SendMessageByString(editx, WM_SETTEXT, 0&, "abc")
button = FindWindowEx(console, 0&, "button", "Ban Selected User")
Call SendMessageLong(button, WM_KEYDOWN, VK_SPACE, 0&)
Call SendMessageLong(button, WM_KEYUP, VK_SPACE, 0&)
DoEvents
PalBan ' Produces the Ban Window Title"<<<--freeses
x = FindWindow("#32770", BanWindow)
button = FindWindowEx(x, 0&, "button", "Yes")
Call SendMessageLong(button, WM_KEYDOWN, VK_SPACE, 0&)
Call SendMessageLong(button, WM_KEYUP, VK_SPACE, 0&)
Text38 = ""
End If