使用 C++17 和 EUI-NEO 构建的 Windows 桌面工具。
程序每秒检测一次 cs2.exe。当 CS2 正在运行时,会关闭下列受控通讯软件:
QQ.exeWeChat.exeWeixin.exeWXWork.exeWeCom.exe
检测到目标应用后,程序会立即调用 Windows 的 TerminateProcess 强制结束该进程。这会导致未保存的内容丢失。
cmake -S . -B build -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=Release
cmake --build build --parallel
.\build\cs2_focus_guard.exeEUI-NEO 源码保存在 third_party/EUI-NEO,可在本地重复构建。