Documentation
Guides for capturing long source files with CamToCode — especially on office laptops where extensions and installs are blocked.
Scroll Automation + CamToCode
Scroll Automation is a free, client-side page at /scroll. It opens a file from your computer and scrolls it in fixed sections — no login, no API, nothing leaves your browser.
Use it on your laptop while CamToCode on your phone captures each section. You avoid scrolling inside VS Code or other locked-down editors.
Why this works in offices
- No software install — only a normal website URL
- File stays on your machine (read locally in the browser)
- No backend calls for scrolling or file display
- Works with any editor: export or open the same file via the file picker
Display & settings
Open Settings on the scroll page (hidden in fullscreen — configure before you go full screen). All options are saved in your browser automatically. Nothing is sent to a server.
| Setting | What it does |
|---|---|
| Background / text color | Match your screen for clearer phone capture (e.g. black bg, white text) |
| Font size & zoom (+/−) | Make code larger on screen; zoom also affects auto line detection |
| Font family & bold | Monospace presets or system font; bold for low-light capture |
| Line height & padding | Fine-tune spacing to match your camera crop |
| Line numbers | Show or hide — toggle off if numbers clutter the capture |
| Auto lines per step | When on, step size = visible lines on screen; when off, set a fixed line count |
| Scroll mode | Keyboard (manual) or Timer (auto every N seconds) |
Fullscreen
Press F or click Fullscreen to show code only — header, status bar, hints, buttons, and settings are all hidden so your phone captures a clean screen.
- Exit with Esc, F, or the small ✕ that appears when you move the mouse to the top-right corner
- Keyboard shortcuts (S N P T) still work in fullscreen
Mouse scroll
You can scroll the file freely with the mouse wheel or trackpad at any time — you are not locked to keyboard/timer only. Manual scroll is useful to reposition before a capture. When you press S or N, the next section advances from where you scrolled to.
Recommended setup
- Laptop: Open camtocode.com/scroll in Chrome or Edge. Click Open file and choose your
.py,.js, etc. - Display: Use Fullscreen. Adjust background/text colors, font size, zoom (+/−), and bold for clear phone capture.
- Step size: Enable Auto lines per step (from screen) so each chunk matches what fits on screen — or set a fixed line count that matches your phone camera crop.
- Phone: Open CamToCode → point camera at the laptop screen → crop ROI to the code block only.
- CamToCode settings: Turn on Auto Re-capture and set interval (e.g. 10–15s) or capture manually between scrolls.
Keyboard shortcuts (both scroll modes)
Click the scroll page once so it has focus, then:
| Key | Action |
|---|---|
| S or N | Advance to the next section. In timer mode, also restarts the countdown from zero. |
| P | Keyboard mode: pause / resume advance. Timer mode: pause / resume the timer. |
| T | Terminate — stop session and jump back to line 1 |
| F | Toggle fullscreen (code only, all UI hidden) |
Keyboard mode workflow: First section is already visible → capture on phone → press S or N on laptop → capture next section → repeat. Last chunk automatically shows only remaining lines (e.g. 10 lines left when step is 30).
Timer mode (best with Auto Re-capture)
Set the timer interval to match CamToCode's Auto Re-capture delay (e.g. both 10 seconds). Press Start timer on the laptop when you start capturing on the phone. Sections advance in sync. Use S or N anytime to skip ahead manually — the timer restarts from zero after each skip. Use P to pause the timer or T to stop and reset to the top (same as the on-screen buttons, which are hidden in fullscreen).
Offline use
Open /scroll once while online, then you can turn off Wi‑Fi and still open files, scroll, change settings, and use all keyboard shortcuts — as long as you do not refresh the tab. The scroll tool never calls an API. (CamToCode OCR on your phone still needs internet.)
Tips for clean captures
- Match step size on the scroll page to your camera ROI height — slight overlap helps merge chunks.
- Use Scan Separator in CamToCode settings so merged output shows chunk boundaries.
- Prefer Standard OCR or higher for long files; use Quick OCR for clear screens.
- Enable Night Mode on the phone if the screen has glare.
- Re-open the file on the scroll page if you edit it in VS Code — the browser does not auto-sync disk changes.
Auto Re-capture (CamToCode app)
In the camera app Settings, enable Auto Re-capture and choose an interval. After each scan completes, a countdown runs and the next capture starts automatically — accumulated text is appended to your session.
- Pause during countdown if you need more time to scroll (or use Scroll Automation on the laptop).
- Scan Separator inserts a visible divider between chunks.
- Use Enlarge mode and crop ROI for consistent framing.
Free try scan
/try offers one free Quick OCR scan without login. Scroll Automation and Docs are always free and do not require an account.
Privacy note
Scroll Automation never uploads your file. CamToCode OCR sends camera frames to AI providers when AI Vision is enabled — see Privacy Policy.