# keep-alive **Repository Path**: fly_zero/keep-alive ## Basic Information - **Project Name**: keep-alive - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-07-22 - **Last Updated**: 2026-07-23 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # KeepAlive 这是一个简单的 Windows 托盘工具,使用 Win32 API 和 CMake 构建。程序没有窗口,启动后常驻系统托盘,托盘菜单包含“Start”和“Stop”来开启/停止保持屏幕活跃。 构建与运行: ```powershell mkdir build cd build cmake .. cmake --build . --config Release # 可执行文件位于 build\Release 或 build 目录下,双击运行 ``` 说明:程序通过 `SetThreadExecutionState(ES_DISPLAY_REQUIRED|ES_SYSTEM_REQUIRED)` 来请求系统保持活跃,停止后恢复为 `ES_CONTINUOUS`。