https://github.com/vilicvane/active-mouse
https://github.com/vilicvane/active-mouse
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/vilicvane/active-mouse
- Owner: vilicvane
- License: mit
- Created: 2023-08-29T21:30:20.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-06-03T14:47:57.000Z (about 1 year ago)
- Last Synced: 2025-03-24T00:54:54.416Z (4 months ago)
- Language: TypeScript
- Size: 404 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://www.npmjs.com/package/active-mouse)
[](./package.json)
[](./LICENSE)
[](https://discord.gg/vanVrDwSkS)# Active Mouse
## Usage
```sh
active-mouse [config]
active-mouse [config] --startup
active-mouse [config] --disable-startup
```### Server
**.config.mjs**
```js
import {spawn} from 'child_process';const CONTROL_MY_MONITOR_PATH =
'C:\\Utilities\\controlmymonitor\\ControlMyMonitor.exe';// Try out the configs with ControlMyMonitor.exe first.
const MONITOR = ''; // Could be serial number
const MONITOR_INPUT_DICT = {
'vane-station': '15', // DisplayPort in my case
'vane-mba': '27', // Type-C in my case
};export default {
type: 'server',
name: 'vane-station',
action(name) {
spawn(CONTROL_MY_MONITOR_PATH, [
'/SetValue',
MONITOR,
'60',
MONITOR_INPUT_DICT[name],
]);
},
};
```### Client
**.config.mjs**
```js
export default {
type: 'client',
name: 'vane-mba',
host: '192.168.1.10',
};
```## License
MIT License.