Jump to content

GUI Title different from taskbar title?


Recommended Posts

Thank you Zedna. Another question. I made a media player which exits like this:

Func _Exit()
    Local $vol = _SoundGetMasterVolume()
    DllCall("user32.dll", "int", "AnimateWindow", "hwnd", $MediaPlayer, "int", 500, "long", 0x00090000)
    Do
        _SoundSetMasterVolume(_SoundGetMasterVolume() - 1)
        Sleep(10)
    Until _SoundGetMasterVolume() = 0
    _SoundStop($sound)
    _SoundSetMasterVolume($vol)
    Exit
EndFunc

The problem, is that the volume decreases for everything. So if I'm playing a game, the sound will keep decreasing until my script exists. Is it possible the volume in that function to affect only my script?

Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...