简体   繁体   English

更改Windows Master Volume Java

[英]Change Windows Master Volume Java

im actually trying to figure out how i can set the System Master Volume in Windows 7/Vista. 即时通讯实际上试图弄清楚如何在Windows 7 / Vista中设置系统主音量。

Using javax.sound wont work cause of the new line system of Windows. 使用javax.sound不会导致Windows换行系统的工作。 So i got 2 other options but dont know how to do this. 所以我有2个其他选择,但不知道该怎么做。

First option is sending a Media Key like "VK_VOLUME_UP", but the Media Keys arent listed as KeyEvent in java.awt.KeyEvent. 第一种选择是发送诸如“ VK_VOLUME_UP”之类的媒体密钥,但是媒体密钥不在java.awt.KeyEvent中列为KeyEvent。 Is it possible to add an new key? 是否可以添加新密钥?

Second but worst option is using and command line tool written in another language to set System Volume, but i dont like this option. 第二个但最糟糕的选择是使用以另一种语言编写的命令行工具来设置系统音量,但我不喜欢该选项。

can somebody help me out? 有人可以帮我吗?

regards maefju 问候maefju

下载此独立应用程序: http : //www.desktopapps.co.uk/audioApp.php,然后使用volup参数启动程序。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM