Skip to content

Screen brightness and orientation controls for Node.js Windows applications.

Notifications You must be signed in to change notification settings

artema/desktop-screen-control

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#desktop-screen-control

Screen brightness and orientation controls for Windows applications.

Installation

npm install desktop-screen-control --save

Supported platforms

  • Windows Vista
  • Windows 7
  • Windows 8 and 8.1

Requirements

  • .NET Framework 4.5

Usage

var platform = require('desktop-screen-control');

if (!platform) {
  return console.log('Platform not supported.');
}

platform.getBrightness(function(error, result) {
  console.log('Brightness: ', result * 100, '%');
});

platform.setBrightness(0.5, function(error, result) {
  if (!error) console.log('Brightness is set to 50%');
});

platform.flip(function(error, result) {
  if (!error) console.log('Screen flipped horizontally.');
});

platform.rotateClockwise(function(error, result) {
  if (!error) console.log('Screen rotated clockwise.');
});

platform.rotateCounterClockwise(function(error, result) {
  if (!error) console.log('Screen rotated counterclockwise.');
});

About

Screen brightness and orientation controls for Node.js Windows applications.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published