{"id":17978756,"url":"https://github.com/xland/screencapture","last_synced_at":"2025-05-15T06:02:20.872Z","repository":{"id":153182209,"uuid":"625084443","full_name":"xland/ScreenCapture","owner":"xland","description":"A feature-rich screenshot program","archived":false,"fork":false,"pushed_at":"2025-05-09T04:17:54.000Z","size":9080,"stargazers_count":859,"open_issues_count":11,"forks_count":101,"subscribers_count":15,"default_branch":"main","last_synced_at":"2025-05-09T05:24:56.780Z","etag":null,"topics":["canvas","draw","paint","screencapture","screenshot"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xland.png","metadata":{"files":{"readme":"ReadMe.en.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-04-08T02:59:11.000Z","updated_at":"2025-05-09T04:17:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"aec167c0-05f2-4291-8b25-c61877beafe1","html_url":"https://github.com/xland/ScreenCapture","commit_stats":null,"previous_names":[],"tags_count":77,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xland%2FScreenCapture","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xland%2FScreenCapture/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xland%2FScreenCapture/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xland%2FScreenCapture/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xland","download_url":"https://codeload.github.com/xland/ScreenCapture/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254283336,"owners_count":22045140,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["canvas","draw","paint","screencapture","screenshot"],"created_at":"2024-10-29T17:35:02.482Z","updated_at":"2025-05-15T06:02:20.857Z","avatar_url":"https://github.com/xland.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"﻿English | [简体中文](./)\n\n![banner](./Doc/banner.png)\n\n## Features\n\n- Multi-screen capture, Cross-screen screenshot.\n- Window area highlighting.\n- Camera aperture, Copy pixel color: RGB(`Ctrl+R`), HEX(`Ctrl+H`), CMYK(`Ctrl+K`).\n- Draw circle(`Shift` down), ellipse, square(`Shift` down), rectangle, arrow, ordered numbers in different colors (filled or unfilled).\n- Draw curve, straight line(`Shift` down), opacity line, mosaic, eraser, text.\n- Modify the drawn elements at any time (when `Mouse Over` the element).\n- Undo(`Ctrl+Z`) and Redo(`Ctrl+Y`) support.\n- Pin the cut area on desktop, resize pin window using `Mouse Wheel`.\n- Save to file(`Ctrl+S`) or clipboard(`Ctrl+C`).\n- Very fast, Small memory footprint, Low CPU usage.\n- Only one small executable file (7M, without any DLL).\n- Can be easily integrated into any program.\n\n## Download\n\n[Release](https://github.com/xland/ScreenCapture/releases/) （7M）\n\n## Command line\n\n```powershell\n//钉住剪切板内的图像，(100,100) 是钉住窗口的坐标\nScreenCapture.exe --pin:clipboard,100,100\n\n//钉住图像文件，(100,100) 是钉住窗口的坐标\nScreenCapture.exe --pin:file,\"D:\\\\test.png\",100,100\n\n//钉住桌面某个区域的图像，(100,100,500,600)是区域矩形，(800,10)是钉住窗口的坐标\nScreenCapture.exe --pin:area,100,100,500,600,800,10\n\n//设置本次截图的保存路径与文件名，目前只支持png格式文件\nScreenCapture.exe --path:\"D:\\\\doc\\\\test.png\"\n\n//设置本次截图的保存目录，与 --path 命令互斥\nScreenCapture.exe --dir:\"D:\\\\doc\"\n\n//设置应用程序的语言，目前只支持简体中文(zhcn)和英文(en)，默认中文\nScreenCapture.exe --lang:en\n\n//第一个参数6为图像质量，第二个参数60为缩放百分比\n//图像质量为 -1~9的整数\n//0：无压缩（最小压缩级别，文件最大，保存最快）。\n//9：最大压缩（文件最小，保存最慢）。\n//-1：默认压缩级别（通常选择中等压缩，平衡大小和速度）。\nScreenCapture.exe --comp:6,60\n\n```\n\n## Integration\n\n(With Node.js Or Electron)\n\n```js\nlet spawn = require(\"child_process\").spawn;\nlet child = spawn(\"./path/to/ScreenCapture.exe\")\nchild.on(\"close\", (code) =\u003e {\n    /// when code is:\n    /// 0 undefined\n    /// 1 quit by press close btn;\n    /// 2 quit by press right mouse btn;\n    /// 3 quit by press esc key;\n    /// 4 quit when copy rgb color;\n    /// 5 quit when copy hex color;\n    /// 6 quit when copy cmyk color;\n    /// 7 quit when copy mouse position;\n    /// 8 quit when save to file;\n    /// 9 quit when save to clipboard;\n    console.log(\"the quit code is:\",code)\n});\n```\n\n## Support OS\n\n- Windows 10 1607 or Later\n\n## HotKey\n\n### AutoHotKey\n\n- Download [AutoHotKey](https://www.autohotkey.com/) and install it.\n- Create a `.ahk` script file in `shell:Startup` folder and set the file's content:\n\n```ahk\n/*\nYou need to save this ahk script to the dir on the following place.\n%AppData%\\\\Microsoft\\\\Windows\\\\Start Menu\\\\Programs\\\\Startup\n\nSimple tutorial for ahk.\n\n^  :  Ctrl\n!  :  Alt\n+  :  Shift\n#  :  Win\n*/\n\n;This hotkey is Ctrl+Alt+A \n^!A::Run \"path/to/ScreenCapture.exe\"\n\n;This hotkey is Win+Ctrl+Alt+P\n#^!P::Run \"path/to/ScreenCapture.exe\" \"--dir:`\"D:\\doc`\"\"\n```\n\n- Double Click the `.ahk` file,then you can start the `ScreenCapture.exe` by press `Ctrl+Alt+A`.\n- The `.ahk` script will be executed when the system startup.\n\n### SC_Starter\n\n[SC_Starter](https://github.com/Mikachu2333/sc_starter/) is a process writen with rust and it could assist you for create/change HotKey easily.\n\n- Start ScreenCapture with Hotkey (Automatically rename pics you shotted with time now).\n- Pin Clipplboard pic to Screen with HotKey\n- Open Settings with Hotkey. (All hotkey settings, etc. are here.)\n- Exit with HotKey.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxland%2Fscreencapture","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxland%2Fscreencapture","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxland%2Fscreencapture/lists"}