0.0.12 • Published 2 months ago

active-mouse v0.0.12

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

NPM version Repository package.json version MIT License Discord

Active Mouse

Usage

active-mouse [config]
active-mouse [config] --startup
active-mouse [config] --disable-startup

Server

.config.mjs

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

export default {
  type: 'client',
  name: 'vane-mba',
  host: '192.168.1.10',
};

License

MIT License.

0.0.12

2 months ago

0.0.10

3 months ago

0.0.11

3 months ago

0.0.9

3 months ago

0.0.8

6 months ago

0.0.7

7 months ago

0.0.6

7 months ago

0.0.5

7 months ago

0.0.4

7 months ago

0.0.3

8 months ago

0.0.2

8 months ago

0.0.1

8 months ago

0.0.0

8 months ago