Uses 1319K of libraries. Click here for Pure Java version (1968L/11K).
1 | !7 |
2 | |
3 | cmodule KeyLogger > DynPrintLog {
|
4 | switchable bool verbose; |
5 | |
6 | start {
|
7 | ownResource(onGlobalKeyPress(voidfunc(NativeKeyEvent e) enter {
|
8 | if (verbose) |
9 | print("Key down: " + e.getKeyCode() + ", mod=" + e.getModifiers()
|
10 | + ", raw=" + e.getRawCode() + ", char=" + e.getKeyChar() |
11 | + ", loc=" + e.getKeyLocation()); |
12 | vmBus_send('keyDown, e.getKeyCode(), e.getModifiers());
|
13 | vmBus_send('keyDown_raw, e.getRawCode(), e.getModifiers());
|
14 | })); |
15 | ownResource(onGlobalKeyRelease(voidfunc(NativeKeyEvent e) enter {
|
16 | vmBus_send('keyUp, e.getKeyCode(), e.getModifiers());
|
17 | vmBus_send('keyUp_raw, e.getRawCode(), e.getModifiers());
|
18 | })); |
19 | } |
20 | } |
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1018559 |
| Snippet name: | Key Logger [Dyn Module] |
| Eternal ID of this version: | #1018559/12 |
| Text MD5: | f2fc85fe9c1824cd948ff3fab8c4bbba |
| Transpilation MD5: | adf8eb3bab39f4df501c745e98327443 |
| Author: | stefan |
| Category: | javax / stefan's os |
| Type: | JavaX source code (Dynamic Module) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2020-09-03 17:39:25 |
| Source code size: | 712 bytes / 20 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 822 / 130320 |
| Version history: | 11 change(s) |
| Referenced in: | [show references] |