Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fix: screenshots won't paste into Claude Code on Windows

The bug (anthropics/claude-code#68021): you take a screenshot with Win+Shift+S, hit Ctrl+V in Claude Code inside Windows Terminal, and get "No image found in clipboard" — even though the image is right there.

The cause: Claude Code's clipboard reader can't consume raw bitmap data on Windows. But pasting a file reference (like copying a .png in Explorer and pasting it) works perfectly.

The fix: a 28-line AutoHotkey script that intercepts Ctrl+Vonly inside Windows Terminal — and, if the clipboard holds a raw bitmap, silently converts it to a temp PNG file-reference first, then pastes. Your muscle memory doesn't change: snip, Ctrl+V, done.

Install

  1. Install AutoHotkey v2 (the fix does not work with v1).
  2. Clone this repo (or just download the three files into one folder).
  3. Double-click screenshot-paste.ahk. That's it.
  4. (Optional) Auto-start on login: press Win+R, type shell:startup, drop a shortcut to screenshot-paste.cmd there.

How it works

File Role
screenshot-paste.ahk Hooks Ctrl+V only when Windows Terminal is focused. Checks for CF_DIB on the clipboard; if present, calls the converter, then forwards the paste.
clip-image-to-file.ps1 Saves the clipboard image to %TEMP%\claude-clip\shot_<ticks>.png and puts it back on the clipboard as a file-drop (CF_HDROP). Retries around the brief clipboard lock after a fresh snip. Keeps only the last 50 shots.
screenshot-paste.cmd One-line launcher for shell:startup.

Everything outside Windows Terminal is untouched — Ctrl+V in your browser, editor, etc. behaves exactly as before. Text and file-copy pastes inside the terminal also pass straight through.

Scope & caveats

  • Targets WindowsTerminal.exe. Using Claude Code in another terminal? Change the ahk_exe in the #HotIf line.
  • Temp PNGs live in %TEMP%\claude-clip (auto-pruned to the newest 50).
  • When the upstream bug is fixed, just stop the script — nothing else to undo.

More Claude Code tooling

License

MIT

About

Fix 'No image found in clipboard' when pasting screenshots into Claude Code on Windows Terminal. 28-line AutoHotkey v2 shim: raw bitmap -> temp PNG file reference (works around anthropics/claude-code#68021).

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages