if (!strcmp(pSoundEntry, "UIPanorama.popup_accept_match_beep")) {
static auto fnAccept = reinterpret_cast<bool(__stdcall*)(const char*)>(Utils::PatternScan(GetModuleHandleA("client_panorama.dll"), "55 8B EC 83 E4 F8 8B 4D 08 BA ? ? ? ? E8 ? ? ? ? 85 C0 75 12"));
if (fnAccept) {
fnAccept("");
//This will flash the CSGO window on the taskbar
//so we know a game was found (you cant hear the beep sometimes cause it auto-accepts too fast)
FLASHWINFO fi;
fi.cbSize = sizeof(FLASHWINFO);
fi.hwnd = InputSys::Get().GetMainWindow();
fi.dwFlags = FLASHW_ALL | FLASHW_TIMERNOFG;
fi.uCount = 0;
fi.dwTimeout = 0;
FlashWindowEx(&fi);
}
}