Jump to content

Recommended Posts

Posted

I was wondering if i could change the volume of my pc (the original volume, not the SoundSetWaveVolume() ? I want to set it as a hotkey if possible so i can change it while playing a game without alt-tab ;)

  • Moderators
  • Moderators
Posted

Or if you want to figure it out on your own, I figured out that it was "winmm.dll" and I have been messing around with it for a few minutes.

Or you could just look at the source code:
Func mciSendString($string)
    Local $iRet
    $iRet = DllCall("winmm.dll", "int", "mciSendStringA", "str", $string, "str", "", "int", 65534, "hwnd", 0)
    If Not @error Then Return $iRet[2]
EndFunc   ;==>mciSendString
And it's already done for you?

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...