How chater-marzougui/screensolver works
ScreenSolver is a single-file desktop study aid: a user launches its floating Tkinter interface, which coordinates timed or manually triggered screen capture, Gemini question analysis, and answer display. The README documents monitoring, controls, countdown, and custom context; sampled code confirms the main capture-to-AI-to-display path. Responsibilities share app.py because the implementation is monolithic. Some UI behavior and configuration details are documented but not fully shown in the excerpts.
Main entry points: app.py AI processor · context.txt Custom context
Components 13
Desktop controls
- App entry
app.py - Floating interface
app.py - Hotkeys and menu
app.py - Timer and pause
app.py - Answer display
app.py
Question analysis
- Capture coordinator
app.py - Screen capture
app.py - AI processor
app.py - JSON answer parsing
app.py
Inputs and services
- Custom context
context.txt - API key setup
app.py - Gemini API
Other components
- User
Connections 14
- User → App entry: launches
README.md - App entry → Floating interface: creates
app.py - User → Hotkeys and menu: controls
README.md - Hotkeys and menu → Capture coordinator: triggers capture
app.py - Hotkeys and menu → Timer and pause: toggles pause
app.py - Timer and pause → Floating interface: updates periodically
README.md - Capture coordinator → Screen capture: captures screen
app.py - Screen capture → AI processor: submits image
app.py - AI processor → API key setup: uses keys
app.py - AI processor → Custom context: loads context
app.py - AI processor → Gemini API: requests analysis
app.py - AI processor → JSON answer parsing: parses response
app.py - Capture coordinator → Answer display: sends result
app.py - Answer display → Floating interface: updates text
app.py