{"id":15409955,"url":"https://github.com/havendv/h.inputsimulator","last_synced_at":"2025-04-06T18:13:49.102Z","repository":{"id":45284782,"uuid":"330997272","full_name":"HavenDV/H.InputSimulator","owner":"HavenDV","description":"Allows you to simulate global mouse and keyboard events.","archived":false,"fork":false,"pushed_at":"2025-01-27T12:07:22.000Z","size":323,"stargazers_count":88,"open_issues_count":2,"forks_count":15,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-30T17:08:37.138Z","etag":null,"topics":["csharp","keyboard","library","mouse","net5","netcore","netstandard","netstandard20","simulate"],"latest_commit_sha":null,"homepage":"https://github.com/TChatzigiannakis/InputSimulatorPlus","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"ms-pl","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/HavenDV.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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},"funding":{"patreon":"havendv","ko_fi":"havendv","custom":["https://www.paypal.me/havendv","https://www.buymeacoffee.com/havendv","https://www.upwork.com/freelancers/~017b1ad6f6af9cc189"]}},"created_at":"2021-01-19T13:56:34.000Z","updated_at":"2025-03-10T12:45:07.000Z","dependencies_parsed_at":"2023-12-18T12:45:31.983Z","dependency_job_id":"3ed295a2-3e5c-4ca6-b2e1-81d6f618c4b4","html_url":"https://github.com/HavenDV/H.InputSimulator","commit_stats":{"total_commits":76,"total_committers":4,"mean_commits":19.0,"dds":"0.48684210526315785","last_synced_commit":"fecc6075bdf5e87f5c3f02e4a4a6cec3b0f3ee32"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":"HavenDV/CSharpProjectTemplate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HavenDV%2FH.InputSimulator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HavenDV%2FH.InputSimulator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HavenDV%2FH.InputSimulator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HavenDV%2FH.InputSimulator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HavenDV","download_url":"https://codeload.github.com/HavenDV/H.InputSimulator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247526761,"owners_count":20953143,"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","keyboard","library","mouse","net5","netcore","netstandard","netstandard20","simulate"],"created_at":"2024-10-01T16:42:09.257Z","updated_at":"2025-04-06T18:13:49.082Z","avatar_url":"https://github.com/HavenDV.png","language":"C#","readme":"# [H.InputSimulator](https://github.com/HavenDV/H.InputSimulator/) \nAllows you to simulate global mouse and keyboard events.\nFeatures:\n- Supports scan codes and multi-language input.\n- Supports WPF/WinForms/Console windows apps.\n- Supports .NET Standard 2.0+, .Net Framework 4.6.2 and .Net 8+.\n- Supports trimming/nativeAOT, nullability, and other modern C# features.\n\nSupported OS:\n- Windows\n\n## Nuget\n\n[![NuGet](https://img.shields.io/nuget/dt/H.InputSimulator.svg?style=flat-square\u0026label=H.InputSimulator)](https://www.nuget.org/packages/H.InputSimulator/)\n\n```\nInstall-Package H.InputSimulator\n```\n\n## Examples\n\n### SelectCopyPaste\n```cs\nnew InputSimulator().Keyboard\n    .ModifiedKeyStroke(VirtualKeyCode.CONTROL, VirtualKeyCode.VK_A)\n    .ModifiedKeyStroke(VirtualKeyCode.CONTROL, VirtualKeyCode.VK_C)\n    .ModifiedKeyStroke(VirtualKeyCode.CONTROL, VirtualKeyCode.VK_V);\n```\n\n### OpenWindowsExplorer\n```cs\nnew InputSimulator().Keyboard\n    .ModifiedKeyStroke(VirtualKeyCode.LWIN, VirtualKeyCode.VK_E);\n```\n\n### SelfDestructMessage\n```cs\nnew InputSimulator().Keyboard\n    .ModifiedKeyStroke(VirtualKeyCode.LWIN, VirtualKeyCode.VK_R)\n    .Sleep(1000)\n    .TextEntry(\"notepad\")\n    .Sleep(1000)\n    .KeyPress(VirtualKeyCode.RETURN)\n    .Sleep(1000)\n    .TextEntry(\"These are your orders if you choose to accept them...\")\n    .TextEntry(\"This message will self destruct in 5 seconds.\")\n    .Sleep(5000)\n    .ModifiedKeyStroke(VirtualKeyCode.MENU, VirtualKeyCode.F4)\n    .KeyPress(VirtualKeyCode.VK_N);\n```\n\n### OpenPaintAndCreateLine\n```cs\nnew InputSimulator().Keyboard\n    .ModifiedKeyStroke(VirtualKeyCode.LWIN, VirtualKeyCode.VK_R)\n    .Sleep(1000)\n    .TextEntry(\"mspaint\")\n    .Sleep(1000)\n    .KeyPress(VirtualKeyCode.RETURN)\n    .Sleep(1000)\n    .Mouse\n    .LeftButtonDown()\n    .MoveMouseToPositionOnVirtualDesktop(65535 / 2, 65535 / 2)\n    .LeftButtonUp();\n```\n\n## Common problems\n### Some simulated input commands were not sent successfully.\nPlease think of the library as a high-level wrapper over Win32 `SendInput` call. \nUnfortunately, this is a limitation of the API itself, according to this documentation:\n- https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-sendinput#remarks\n- https://en.wikipedia.org/wiki/User_Interface_Privilege_Isolation\n\nThe easiest way to get around this is to run your application as an administrator.\n\n## Support\nPriority place for bugs: https://github.com/HavenDV/H.InputSimulator/issues  \nPriority place for ideas and general questions: https://github.com/HavenDV/H.InputSimulator/discussions  \nI also have a Discord support channel:  \nhttps://discord.gg/g8u2t9dKgE\n","funding_links":["https://patreon.com/havendv","https://ko-fi.com/havendv","https://www.paypal.me/havendv","https://www.buymeacoffee.com/havendv","https://www.upwork.com/freelancers/~017b1ad6f6af9cc189"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhavendv%2Fh.inputsimulator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhavendv%2Fh.inputsimulator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhavendv%2Fh.inputsimulator/lists"}