Skip to content

Instantly share code, notes, and snippets.

@kjunichi
Last active January 5, 2018 00:16
Show Gist options
  • Save kjunichi/82ee213c131b307b4e8e989a68cd6e34 to your computer and use it in GitHub Desktop.
Save kjunichi/82ee213c131b307b4e8e989a68cd6e34 to your computer and use it in GitHub Desktop.

Windowsでキー入力を取得

Win32APIでフックを使うと出来そう。DLL化が必要との記述ある。

python実装のコードを見る限り、DLL化は必須ではなさそう

Keycast.jsでWin版が出来たらよい。

GetAsyncKeyState

制限があるようだが、このAPIで結構出来そう。

参考資料

Money

  • 348

MS

_MSC_VER

関連Gist

アクセス解析タグ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment