Socket
Socket
Sign inDemoInstall

active-mouse

Package Overview
Dependencies
31
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    active-mouse

[![NPM version](https://img.shields.io/npm/v/active-mouse?color=%23cb3837&style=flat-square)](https://www.npmjs.com/package/active-mouse) [![Repository package.json version](https://img.shields.io/github/package-json/v/vilic/active-mouse?color=%230969da&l


Version published
Weekly downloads
1
Maintainers
1
Created
Weekly downloads
 

Readme

Source

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.

FAQs

Last updated on 07 Mar 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc