Jump to content
Sign in to follow this  
Gif

Mistake

Recommended Posts

Gif

While 1
    $msg = GuiGetMsg()
    Select
    Case $msg = $GUI_EVENT_CLOSE
        $confirmexitx = MsgBox(4, "Confirm", "Are you sure you want to exit ?")
         if $confirmexitx = 6 then Exit
            if $confirmexitx = 7 then WinClose("Confirm")
            if @error = 1 then Exit
    Case $msg = $btn_play
            $lbl_showsongfile = GUICtrlCreateLabel(GUICtrlRead($input_open), 160, 110, 270, 40)
            $sound = _SoundOpen(GUICtrlRead($input_open))
                 If @error = 2 Then
                    MsgBox(0, "Error", "The file does not exist")
                     ElseIf @error = 3 Then
                        MsgBox(0, "Error", "The alias was invalid")
                        EndIf
                            $soundplay = _SoundPlay($sound, 1)
                                _SoundClose($sound)

SO HERE IS THE SCRIPT, WHEN I USE IT THE MUSIC PLAYS BUT YET I HAVE A PROBLEM, THE program HAS A PROBLEM AND IT SHOWS ME THE (NOT RESPONDING) LABEL AND I CAN'T DO ANYTHING.

PLEASE HELP ME WITH MY SCRIPT

HOW DO _sound open, _soundplay and _soundclose MUST BE IN ORDER TO WORK PERFECT?

Share this post


Link to post
Share on other sites
Jos

Since we are shouting :

RTFM

$fWait [optional] This flag determines if the script should wait for the sound to finish before continuing:

1 = wait until sound has finished

0 = continue script while sound is playing (default)

And NO need to create two threads with the same question. *click* Edited by JdeB

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

×