Jump to content

Play a .mp3?


Harusal
 Share

Recommended Posts

i think it's useful for u!

#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>

$Sound_clk = @TempDir & "\Sound_clk.wav"
FileInstall("C:\Sound_clk.wav", $Sound_clk)

$Form1 = GUICreate("Form1", 267, 165, 324, 300)
$Button1 = GUICtrlCreateButton("Button1", 96, 64, 65, 33, 0)
GUISetState(@SW_SHOW)


While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit
                                Case $Button1
                                        SoundPlay($Sound_clk)
                                      MsgBox(64,"Test","Test text")

    EndSwitch
WEnd

4m848p10.gif 

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...