{"id":19408970,"url":"https://github.com/lexz-08/sharpkey","last_synced_at":"2026-05-16T03:39:02.361Z","repository":{"id":126982298,"uuid":"341749421","full_name":"Lexz-08/SharpKey","owner":"Lexz-08","description":"A library for creating simple and easy to use hotkeys.","archived":false,"fork":false,"pushed_at":"2021-06-02T01:31:13.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-07T14:25:11.972Z","etag":null,"topics":["csharp","hotkeys","user32","windows"],"latest_commit_sha":null,"homepage":"https://github.com/Lexz-08/SharpKey/","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Lexz-08.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2021-02-24T02:04:46.000Z","updated_at":"2021-06-02T01:31:16.000Z","dependencies_parsed_at":"2023-06-19T14:06:00.986Z","dependency_job_id":null,"html_url":"https://github.com/Lexz-08/SharpKey","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lexz-08%2FSharpKey","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lexz-08%2FSharpKey/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lexz-08%2FSharpKey/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lexz-08%2FSharpKey/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Lexz-08","download_url":"https://codeload.github.com/Lexz-08/SharpKey/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240587486,"owners_count":19825006,"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","hotkeys","user32","windows"],"created_at":"2024-11-10T12:09:00.874Z","updated_at":"2026-05-16T03:38:57.342Z","avatar_url":"https://github.com/Lexz-08.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"## SharpKey\n### Description\nA library for creating ***simple*** and ***easy to use*** hotkeys.\n\n### How To Use\nNow obviously, this is more easily used in an application that uses the `System.Windows.Forms` library because of the WndProc(ref Message m) function.\n```csharp\n// Assuming you're in the code of a Windows Form.\n\nprivate Hotkey Hotkey1, Hotkey2;\n\nprotected override void OnLoad(EventArgs e)\n{\n    base.OnLoad(e);\n    \n    // Initialize 2 new instances of Hotkey.\n    Hotkey1 = new Hotkey(Handle, 0, FSModifiers.Shift, Keys.C);\n    Hotkey2 = new Hotkey(Handle, 1, FSModifiers.Shift, Keys.M);\n    \n    // Register both instances.\n    // The default value of the Notify parameter is set to TRUE, so you'll\n    // notice immediately whether or not the registration was a success.\n    Hotkey1.Hook();\n    Hotkey2.Hook();\n}\n\nprotected override void WndProc(ref Message m)\n{\n    if (m.Msg == Hotkey.HOTKEY)\n    {\n        int WParam = (int)m.WParam;\n        \n        if (WParam == Hotkey1.Id) // Close the window if Shift+C is pressed.\n            Close();\n        else if (WParam == Hotkey2.Id) // Minimize the window if Shift+M is pressed.\n            WindowState = FormWindowState.Minimized;\n    }\n    \n    base.WndProc(ref m);\n}\n```\n\n### Download\n[SharpKey.dll](https://github.com/Lexz-08/SharpKey/releases/download/sharpkey/SharpKey.dll)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flexz-08%2Fsharpkey","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flexz-08%2Fsharpkey","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flexz-08%2Fsharpkey/lists"}