{"id":20804398,"url":"https://github.com/umer0586/winkeyboard","last_synced_at":"2025-05-07T03:43:15.783Z","repository":{"id":256946638,"uuid":"118607361","full_name":"umer0586/winKeyboard","owner":"umer0586","description":"A tiny Java helper for Windows for emulating keyboard via scan codes.","archived":false,"fork":false,"pushed_at":"2021-09-03T09:05:10.000Z","size":32,"stargazers_count":11,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-07T03:43:00.292Z","etag":null,"topics":["directinput","game","java","keyboard","keyboard-emulation","scancodes"],"latest_commit_sha":null,"homepage":"","language":"Java","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/umer0586.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":"2018-01-23T12:27:23.000Z","updated_at":"2025-01-11T15:26:01.000Z","dependencies_parsed_at":"2024-09-14T02:45:11.316Z","dependency_job_id":"0dbc3e82-a4fd-4e26-b9d9-52d037d2eaf2","html_url":"https://github.com/umer0586/winKeyboard","commit_stats":null,"previous_names":["umer0586/winkeyboard"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umer0586%2FwinKeyboard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umer0586%2FwinKeyboard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umer0586%2FwinKeyboard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umer0586%2FwinKeyboard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/umer0586","download_url":"https://codeload.github.com/umer0586/winKeyboard/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252810272,"owners_count":21807759,"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":["directinput","game","java","keyboard","keyboard-emulation","scancodes"],"created_at":"2024-11-17T19:09:08.881Z","updated_at":"2025-05-07T03:43:15.767Z","avatar_url":"https://github.com/umer0586.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# winKeyboard (JNI)\nA tiny Java helper for Java applications running under **Windows** for emulating keyboard via scan codes.\n\nIf a Java application sends keystroke to the game using `java.awt.Robot`, then games which uses `DirectInput API` for reading keyboard input `(scancodes)` may have no effect.\n\nHere is a simple Java helper for Windows which allow Java applications to send keystrokes to the game/application by generating keyboard scancode using Java Native Interface (JNI)\n\n```java\nKeyboard keyboard = new Keyboard();\nkeyboard.winKeyPress(ScanCode.DIK_UP);\n//Thread.sleep(1000);\nkeyboard.winKeyRelease(ScanCode.DIK_UP);\n```\n\nTo send combination (e.g LEFT_SHIFT+A )\n```java\n kb.winPressCombination(ScanCode.DIK_LSHIFT,ScanCode.DIK_A);\n kb.winReleaseCombination(ScanCode.DIK_LSHIFT,ScanCode.DIK_A);\n ```\n\nLEFT_CTRL+LEFT_SHIFT+A\n```java\n kb.winPressCombination(ScanCode.DIK_LCONTROL,ScanCode.DIK_LSHIFT,ScanCode.DIK_A);\n kb.winReleaseCombination(ScanCode.DIK_LCONTROL,ScanCode.DIK_LSHIFT,ScanCode.DIK_A);\n```\n\n# See this in action in this video\n[![IMAGE ALT TEXT](http://img.youtube.com/vi/JgM5VdYF0Yg/0.jpg)](http://www.youtube.com/watch?v=JgM5VdYF0Yg \"JavaFx\")\n\n\n\n# Important\n    make sure you place SCGen32.dll and SCGen64.dll in java library path otherwise java.lang.UnsatisfiedLinkError will be thrown\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fumer0586%2Fwinkeyboard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fumer0586%2Fwinkeyboard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fumer0586%2Fwinkeyboard/lists"}