Advertisement
Guest User

Untitled

a guest
Apr 24th, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ...
  2. SetWindowsHookEx(WH_KEYBOARD_LL, hook_proc(), null, 0);
  3. ...
  4.  
  5. function hook_proc() {
  6. var someState;
  7. return function(code, wParam, lParam) {
  8. // someState is captured in this closure
  9. ...
  10. };
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement