File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Monitor And Java Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "Monitor And Java" Watch "Monitor And Java" New topic
Author

Monitor And Java

Pankaj Patel
Ranch Hand

Joined: Jul 13, 2006
Posts: 73
Hi 2 All.

Can anybody tell me, how to Swith on and off Monitor(Physical Appliance)?


Thanks in Advance.
Jesper de Jong
Java Cowboy
Bartender

Joined: Aug 16, 2005
Posts: 12907
    
    3

Press the power button on the monitor.

Or, build a robot hand to press the button and write a program to make it press the button.

Seriously, this isn't going to be easy. When a PC goes into power saving mode, it can switch off the signal from the video card which will put the monitor into power saving mode. The standard Java API certainly does not have any functionality to control this. Maybe your operating system has functions to do this, which you could call via JNI from Java.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
Steve Gibson's Wizmo can switch to power save mode - shaking the mouse wakes it up - from the command line. Maybe you could call it via exec. On Windows anyhow.
[ June 06, 2007: Message edited by: Stan James ]

A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Monitor And Java
 
Similar Threads
WA #1.....word association
Problem connecting to Server
which pattern is used in Threading model of Java ?
Transaction
Synchronize