https://github.com/streamlabs/node-libuiohook
https://github.com/streamlabs/node-libuiohook
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/streamlabs/node-libuiohook
- Owner: streamlabs
- License: gpl-2.0
- Created: 2017-10-25T17:48:55.000Z (over 8 years ago)
- Default Branch: streamlabs
- Last Pushed: 2024-07-17T22:05:31.000Z (almost 2 years ago)
- Last Synced: 2025-07-29T04:33:50.146Z (11 months ago)
- Language: C++
- Size: 342 KB
- Stars: 5
- Watchers: 5
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# node-libuiohook
## Build
```
yarn insall
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX="..\..\desktop\node_modules\node-libuiohook" -G "Visual Studio 17 2022" -A x64 ../
cmake --build . --target install --config RelWithDebInfo
```
## Test
There is some test to minimally confirm stability of a module.
It will create bunch of windows, load module in each of them, register some random hotkeys. Each window will be closed after a small timeout, module will be unloaded.
Command to use it :
` yarn electron test\test_module.js `
Change variable `windows_to_test` in `test_module.js` to set number of cycles. **It is hard to interrupt a test, be careful when changing this number**.
Try to click on console and press `Ctrl-C` at the same time.
Test rely on `render-process-gone` event to detect crashes.