You dare to compare the volume in front of autohotkey-imsoft. cnblogs

Source: Internet
Author: User

When you are fighting in a computer game, or you are immersed in intense action movies, or are listening to beautiful music ......, In these scenarios, what if you need to adjust the volume quickly (for example, increase or decrease the volume or mute the volume? Return to the Windows desktop, open the system volume control window, and drag the volume control lever to adjust the volume? This is so disappointing!

For users using high-end multimedia keyboards, you only need to click the volume control key to adjust the volume, but the general keyboard does not have this function. Moreover, the volume control key of the high-end Keyboard can only adjust the main volume, and the adjustment of the wave waveform volume is also "helpless ". However, with autohotkey, we can develop a simple and efficient volume control program to "specify" all-round volume control keys for the keyboard. While enriching the functions of the keyboard, we can also have programs with "proprietary rights. Yes: http://home.tampabay.rr.com/kodi/ahk/autohotkeyinstall.exe.

1. Activate now DIY your volume control keyboard
Open windows Resource Manager, select a folder, right-click in the blank area, select "new"> "autohotkey script" in the pop-up menu, and create an autohotkey script file in the current path, change it to a proper name (for example, "volume. ahk "). Right-click the file and select Edit script to open the Script Editor. Press the Enter key at the beginning of the script editor window and enter the following script:
F10: soundset, + 1, mute
F11 ::
Soundset + 10, Master
Soundset, + 10, wave
Return
F12 ::
Soundset-10, Master
Soundset,-10, wave
Return

The master in the script represents the main audio channel, the wave represents the wave channel, and the mute represents the mute, And the: represents the separator. F10, F11, and F12 represent the F10, F11, and F12 keys on the keyboard. soundset indicates the volume control keyword, + indicates increasing the volume, and-Indicates decreasing the volume. + 10 indicates an increase of 10%, and-10 indicates a decrease of 10%. After the script is run, click F10 to perform the mute operation. Click F11 to increase the volume of the main audio channel and the wave audio channel. Click F12, it can reduce the volume of the main audio channel and the wave audio channel at the same time.

2. Run the script on your own.
Right-click the script file and choose "run script" from the shortcut menu to run the script file. The script file does not have the main window after it is run. It will reside in the system tray of the taskbar. In addition, autohotkey can compile the script file in Ahk format into an EXE file, which is easy to carry and run. Click Start> program> autohotkey> convert. Ahk to. EXE to open the script compilation window (1 ). In "Source (script file)", click "Browse" to select the script file. Set the path of the executable file in destination(.exe file. You can customize the program icon in "Custom icon (. ICO file. To control the size of compiled program files, select the program compression standard in the "compression" menu. After setting, click the "convert" button to compile the script into an EXE file. This function runs independently from the autohotkey design environment. You can copy it to a USB flash drive or another mobile device. No matter where you go, you can control the volume by running the execution file.

 

You dare to compare the volume in front of autohotkey-imsoft. cnblogs

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.