Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

19
LINES

< > BotCompany Repo | #1019631 // Mouse Logger [Dyn Module]

JavaX source code (Dynamic Module) [tags: use-pretranspiled] - run with: Stefan's OS

Uses 1319K of libraries. Click here for Pure Java version (1898L/10K).

1  
!7
2  
3  
cmodule MouseLogger > DynPrintLog {
4  
  switchable bool verbose;
5  
  
6  
  start {
7  
    ownResource(onGlobalMousePress(voidfunc(NativeMouseEvent e) {
8  
      if (verbose)
9  
        print("Mouse press at " + e.getX() + "/" + e.getY() + ", button " + e.getButton());
10  
      vmBus_send('mouseDown, e.getX(), e.getY(), e.getButton());
11  
    }));
12  
  
13  
    ownResource(onGlobalMouseRelease(voidfunc(NativeMouseEvent e) {
14  
      if (verbose)
15  
        print("Mouse release at " + e.getX() + "/" + e.getY() + ", button " + e.getButton());
16  
      vmBus_send('mouseUp, e.getX(), e.getY(), e.getButton());
17  
    }));
18  
  }
19  
}

Author comment

Began life as a copy of #1018559

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1019631
Snippet name: Mouse Logger [Dyn Module]
Eternal ID of this version: #1019631/6
Text MD5: 8bca757963d63897dc24e3d40d3411f0
Transpilation MD5: 08b9aebbee5bc855d065aeb556e54342
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-07-23 16:22:44
Source code size: 610 bytes / 19 lines
Pitched / IR pitched: No / No
Views / Downloads: 304 / 18038
Version history: 5 change(s)
Referenced in: [show references]