{"id":14963701,"url":"https://github.com/magicxor/winsyncscroll","last_synced_at":"2026-03-02T22:02:36.788Z","repository":{"id":253212360,"uuid":"831610837","full_name":"magicxor/WinSyncScroll","owner":"magicxor","description":"Scroll two windows simultaneously on Windows","archived":false,"fork":false,"pushed_at":"2025-01-16T14:39:38.000Z","size":289,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-31T05:12:08.734Z","etag":null,"topics":["csharp","dotnet","hooks","input-simulation","mouse","mouse-emulation","mouse-events","pinvoke","scroll","scrolling","win32","win64","winapi","windows","windows-api","wpf"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/magicxor.png","metadata":{"files":{"readme":"README.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}},"created_at":"2024-07-21T04:57:32.000Z","updated_at":"2025-01-16T14:39:40.000Z","dependencies_parsed_at":"2024-12-15T23:19:42.455Z","dependency_job_id":"13f10de5-e26d-4615-8489-ba02eeff67b4","html_url":"https://github.com/magicxor/WinSyncScroll","commit_stats":{"total_commits":98,"total_committers":2,"mean_commits":49.0,"dds":0.04081632653061229,"last_synced_commit":"0d8003e72e01025d6fdc20a352f9b900921b7aaf"},"previous_names":["magicxor/winsyncscroll"],"tags_count":32,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magicxor%2FWinSyncScroll","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magicxor%2FWinSyncScroll/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magicxor%2FWinSyncScroll/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magicxor%2FWinSyncScroll/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/magicxor","download_url":"https://codeload.github.com/magicxor/WinSyncScroll/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238065141,"owners_count":19410587,"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":["csharp","dotnet","hooks","input-simulation","mouse","mouse-emulation","mouse-events","pinvoke","scroll","scrolling","win32","win64","winapi","windows","windows-api","wpf"],"created_at":"2024-09-24T13:32:01.182Z","updated_at":"2026-03-02T22:02:36.779Z","avatar_url":"https://github.com/magicxor.png","language":"C#","readme":"# WinSyncScroll\n\n[![release](https://github.com/magicxor/WinSyncScroll/actions/workflows/release.yml/badge.svg)](https://github.com/magicxor/WinSyncScroll/actions/workflows/release.yml)\n![Coverage Badge](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/magicxor/6ed947906b9d5040b5fa58d0bd56c1f4/raw/WinSyncScroll-cobertura-coverage.json)\n[![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/magicxor/WinSyncScroll)\n\nScroll two windows simultaneously\n\n## Demo\n\nhttps://github.com/user-attachments/assets/ba52c20e-1099-4e20-9b8d-f164d283c639\n\nhttps://github.com/user-attachments/assets/f2cc2020-cc07-411e-a4c7-7ef227d9cdda\n\n## Usage\n\n- **WinSyncScroll.exe** - The main application that users should run to synchronize scrolling between two windows.\n- **WinSyncScroll.VisualTestUtil.exe** - *(Optional)* A debugging utility that helps visualize which events are being received by the target window. Only needed for troubleshooting.\n\n## How it works\n\nThe program uses the `SetWindowsHookEx` function to install a hook procedure that monitors low-level mouse events. When the user scrolls the source window, the program uses `SendInput` to simulate the same scroll event on the target window.\n\n## Configuration\n\nThe program reads the configuration from the `appsettings.json` file. The configuration file must be in the same directory as the executable file.\n\n### Legacy mode\n\nWhen `\"IsLegacyModeEnabled\": true`, the program uses `SendMessage` (instead of `SendInput`) to send the `WM_MOUSEWHEEL` (or `WM_MOUSEHWHEEL`) message to the target window.\n\nThis mode is needed for:\n- Older operating systems that don't have the \"Scroll inactive windows when hovering over them\" setting\n- Remote Desktop (RDP) sessions\n- Users who prefer this mode because the cursor won't flicker\n\n### Strict process id check\n\nWhen `\"IsStrictProcessIdCheckEnabled\": true`, the program uses `WindowFromPoint` + `GetWindowThreadProcessId` to prevent scrolling the target window if the target or source window is currently not in the foreground.\n\n## Troubleshooting\n\nIf the application doesn't work, try the following:\n1. **Check Windows settings** - Make sure the \"Scroll inactive windows when hovering over them\" option is enabled in Windows Settings → Mouse (or enable Legacy mode if this option is unavailable)\n2. **Enable Legacy mode** - Set `\"IsLegacyModeEnabled\": true` in `appsettings.json`\n3. **Run as administrator** - Right-click the executable and select \"Run as administrator\"\n4. **Disable strict process id check** - Set `\"IsStrictProcessIdCheckEnabled\": false` in `appsettings.json`\n\n## See also:\n- https://badecho.com/index.php/2024/01/13/external-window-messages/\n- https://badecho.com/index.php/2024/01/17/message-queue-messages/\n- https://github.com/microsoft/CsWin32\n- https://github.com/dahall/vanara\n- https://www.codeproject.com/Articles/6362/Global-System-Hooks-in-NET\n- https://github.com/rvknth043/Global-Low-Level-Key-Board-And-Mouse-Hook\n- https://sharphook.tolik.io/v5.3.7/\n- https://github.com/TolikPylypchuk/libuiohook\n- https://github.com/jaredpar/pinvoke-interop-assistant\n- [KatMouse](https://ehiti.de/katmouse/)\n- [WizMouse](https://antibody-software.com/wizmouse)\n- [X-Mouse Controls](https://github.com/joelpurra/xmouse-controls)\n- [AlwaysMouseWheel](http://www.softwareok.com/?Download=AlwaysMouseWheel)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmagicxor%2Fwinsyncscroll","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmagicxor%2Fwinsyncscroll","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmagicxor%2Fwinsyncscroll/lists"}