Adjust the volume and prevent the computer from idle in Java ... (Mac and Windows XP, Vista)

I am writing a Java program that wants to do 3 things and I have no idea how to do them or maybe even from Java.

1 - I want to make sure that the computer, no matter if it is running Mac OS or windows xp / vista, does not go to sleep while starting my application.

2 - I want my application to be able to fully turn on the volume of all the above OS before playing audio.

3 - Finally, when the sound is playing, I want to make sure the screen, if it is off for "power saving", is on.

Is it possible? I saw this post that suggested javax.sound. * As an answer to (2), but does this work on OS X and Windows XP, Windows Vista?

If anyone knows I would be very grateful.

EDIT: The app is a wi-fi LAN communication program that allows a user using "client" software to pop up a message on any computer on the network that is running the "server" software. The software has to notify the user even if it is not on the computer, so the requirements for it are always enabled (WOL over Wi-Fi support is not supported), and also for it to make a lot of noise and wake up the screen to display any messages.

0


source to share


1 answer


For a part, 1

you can look at OnNow / ACPI Support for Windows, etc. ES_DISPLAY_REQUIRED

... Not Java, but you probably have to go to your native language or find a third party wrapper library for this type of control.



0


source







All Articles