#define WIN32_LEAN_AND_MEAN
#include <windows.h>
int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) {
int i = 60;
while ( i-- ) {
HWND VentW = FindWindow(NULL, "Ventrilo");
if ( VentW ) {
HWND VentW_a = FindWindowEx(VentW, 0, NULL, "Disconnect");
SendMessage(VentW_a, WM_LBUTTONDOWN, MK_LBUTTON, 0);
SendMessage(VentW_a, WM_LBUTTONUP, MK_LBUTTON, 0);
Sleep(200);
} else
Sleep(350);
}
return 0;
}I cant at all figure out why this isnt working. Does anyone know what im doing wrong, or missing?












