How recso/valcpy works
Valcore is a Windows desktop screen-color detection and click-automation tool, with GUI-managed host and client modes. The visible workflow is GUI startup and rendering; its controls start the host or initialize the client, which captures frames, detects red pixels, and sends a click request through the client socket. The host exposes a socket server and input injection capability. The GUI uses Dear ImGui with Win32 and Direct3D 11 backends. Source evidence for mode internals is partial, and the README is empty; unshown socket dispatch details are omitted.
Main entry points: gui.cpp GUI Controller · main.cpp Application Entry · imgui.cpp ImGui Runtime · cap.cpp Screen Capture
Components 16
Application
- Application Entry
src/main.cpp - GUI Controller
src/gui.cpp
Detection Client
- Client Settings
src/cfg.cpp - Screen Capture
src/cap.cpp - Red Detector
src/dtc.cpp
Socket Modes
- Socket Client
src/socketcl.cpp - Socket Server
src/socketsrv.cpp - Mouse Input
utils/input/input.cpp
GUI Framework
- ImGui Runtime
utils/imgui/imgui.cpp - ImGui Drawing
utils/imgui/imgui_draw.cpp - ImGui Tables
utils/imgui/imgui_tables.cpp - Win32 Backend
utils/imgui/imgui_impl_win32.cpp - Direct3D Backend
utils/imgui/imgui_impl_dx11.cpp
Other components
- Desktop User
- Windows Desktop
- config.ini
Connections 23
- Desktop User → Application Entry: starts
src/main.cpp - Application Entry → GUI Controller: runs
src/main.cpp - GUI Controller → Client Settings: configures
src/gui.cpp - GUI Controller → Screen Capture: captures
src/gui.cpp - GUI Controller → Red Detector: detects
src/gui.cpp - GUI Controller → Socket Client: connects
src/gui.cpp - GUI Controller → Socket Server: starts
src/gui.cpp - Application Entry → Client Settings: loads/saves
src/main.cpp - Application Entry → Screen Capture: captures
src/main.cpp - Application Entry → Red Detector: detects
src/main.cpp - Application Entry → Socket Client: sends clicks
src/main.cpp - GUI Controller → config.ini: saves
src/gui.cpp - Application Entry → config.ini: loads/saves
src/main.cpp - Socket Server → Mouse Input
- GUI Controller → Win32 Backend: initializes
src/gui.cpp - GUI Controller → Direct3D Backend: initializes
src/gui.cpp - GUI Controller → ImGui Runtime: renders with
src/gui.cpp - ImGui Drawing → ImGui Runtime: uses API
utils/imgui/imgui_draw.cpp - ImGui Tables → ImGui Runtime: uses API
utils/imgui/imgui_tables.cpp - Win32 Backend → ImGui Runtime: uses API
utils/imgui/imgui_impl_win32.cpp - Direct3D Backend → ImGui Runtime: uses API
utils/imgui/imgui_impl_dx11.cpp - Windows Desktop → Screen Capture: provides screen
- Windows Desktop → Mouse Input: receives input