I reported about SoundPlay() function problem here, and i thought that this is a bug, i understand now (after Valik has explained to me - thanks
Thanks.
Posted 26 November 2007 - 11:15 PM
==========================================================
AutoIt Russian Community
Projects: ATT - Application Translate Tool [new] | BlockIt - Block files & folders [new] | SIP - Selected Image Preview [new] | SISCABMAN - SciTE Abbreviations Manager [new] | AutoIt Path Switcher | AutoIt Menu for Opera! | YouTube Download Center! | Desktop Icons Restorator | Math Tasks | KeyBoard & Mouse Cleaner | CaptureIt - Capture Images Utility | CheckFileSize Program
UDFs: OnAutoItErrorRegister - Handle AutoIt critical errors [new] | AutoIt Syntax Highlight [new] | Opera Library! | Winamp Library | GetFolderToMenu | Custom_InputBox()! | _FileRun UDF | _CheckInput() UDF | _GUIInputSetOnlyNumbers() UDF | _FileGetValidName() UDF | _GUICtrlCreateRadioCBox UDF | _GuiCreateGrid() | _PathSplitByRegExp() | _GUICtrlListView_MoveItems - UDF | GUICtrlSetOnHover_UDF! | _ControlTab UDF! | _MouseSetOnEvent() UDF! | _ProcessListEx - UDF | GUICtrl_SetResizing - UDF! | Mod. for _IniString UDFs | _StringStripChars UDF | _ColorIsDarkShade UDF | _ColorConvertValue UDF | _GUICtrlTab_CoverBackground | CUI_App_UDF | _IncludeScripts UDF | _AutoIt3ExecuteCode | _DragList UDF | Mod. for _ListView_Progress | _ListView_SysLink | _GenerateRandomNumbers | _BlockInputEx | _IsPressedEx | OnAutoItExit Handler | _GUICtrlCreateTFLabel UDF | WinControlSetEvent UDF | Mod. for _DirGetSizeEx UDF
Examples: ScreenSaver Demo - Matrix included | Gui Drag Without pause the script | _WinAttach()! | Turn Off/On Monitor | ComboBox Handler Example | Mod. for "Thinking Box" | Cool "About" Box | TasksBar Imitation DemoLike the examples/UDFs? Please rate the topic (up-right corner of the post header: Rating
)* === My topics === *
==========================================================AutoIt is simple, subtle, elegant. © AutoIt Team
Posted 01 December 2007 - 08:26 PM
#include <sound.au3> $hSound = _SoundOpen("file.mp3") _SoundPlay($hSound) ;rest of script _SoundClose($hSound)
Posted 01 December 2007 - 08:42 PM
"PlayMe"Sound.au3 has _SoundOpen and _SoundClose, look at the helpfile. AutoIt's built in soundplay basically does the same stuff as sound.au3, except does not close the mci alias used. In your case you would use:
#include <sound.au3> $hSound = _SoundOpen("file.mp3") _SoundPlay($hSound) ;rest of script _SoundClose($hSound)
@dev's
Could you possibly tell me the alias AutoIt uses when using SoundPlay? That way I could put it in _SoundClose remarks rather than a new built in function. (Up to you of course).
Visit the SciTE4AutoIt3 Download page for the latest versions Forum Rules
Live for the present,
Dream of the future,
Learn from the past.
Posted 01 December 2007 - 10:46 PM
I know, thanks, but i thought that the built-in functions (Sound..()) should be able to release the sound handle, so we could use simple SoundPlay() (without including whole library of _Sound...()) and delete the file later.. i think if it Open the handle, it should have some tool to close it.Sound.au3 has _SoundOpen and _SoundClose, look at the helpfile
==========================================================
AutoIt Russian Community
Projects: ATT - Application Translate Tool [new] | BlockIt - Block files & folders [new] | SIP - Selected Image Preview [new] | SISCABMAN - SciTE Abbreviations Manager [new] | AutoIt Path Switcher | AutoIt Menu for Opera! | YouTube Download Center! | Desktop Icons Restorator | Math Tasks | KeyBoard & Mouse Cleaner | CaptureIt - Capture Images Utility | CheckFileSize Program
UDFs: OnAutoItErrorRegister - Handle AutoIt critical errors [new] | AutoIt Syntax Highlight [new] | Opera Library! | Winamp Library | GetFolderToMenu | Custom_InputBox()! | _FileRun UDF | _CheckInput() UDF | _GUIInputSetOnlyNumbers() UDF | _FileGetValidName() UDF | _GUICtrlCreateRadioCBox UDF | _GuiCreateGrid() | _PathSplitByRegExp() | _GUICtrlListView_MoveItems - UDF | GUICtrlSetOnHover_UDF! | _ControlTab UDF! | _MouseSetOnEvent() UDF! | _ProcessListEx - UDF | GUICtrl_SetResizing - UDF! | Mod. for _IniString UDFs | _StringStripChars UDF | _ColorIsDarkShade UDF | _ColorConvertValue UDF | _GUICtrlTab_CoverBackground | CUI_App_UDF | _IncludeScripts UDF | _AutoIt3ExecuteCode | _DragList UDF | Mod. for _ListView_Progress | _ListView_SysLink | _GenerateRandomNumbers | _BlockInputEx | _IsPressedEx | OnAutoItExit Handler | _GUICtrlCreateTFLabel UDF | WinControlSetEvent UDF | Mod. for _DirGetSizeEx UDF
Examples: ScreenSaver Demo - Matrix included | Gui Drag Without pause the script | _WinAttach()! | Turn Off/On Monitor | ComboBox Handler Example | Mod. for "Thinking Box" | Cool "About" Box | TasksBar Imitation DemoLike the examples/UDFs? Please rate the topic (up-right corner of the post header: Rating
)* === My topics === *
==========================================================AutoIt is simple, subtle, elegant. © AutoIt Team
Posted 27 December 2007 - 04:05 PM
==========================================================
AutoIt Russian Community
Projects: ATT - Application Translate Tool [new] | BlockIt - Block files & folders [new] | SIP - Selected Image Preview [new] | SISCABMAN - SciTE Abbreviations Manager [new] | AutoIt Path Switcher | AutoIt Menu for Opera! | YouTube Download Center! | Desktop Icons Restorator | Math Tasks | KeyBoard & Mouse Cleaner | CaptureIt - Capture Images Utility | CheckFileSize Program
UDFs: OnAutoItErrorRegister - Handle AutoIt critical errors [new] | AutoIt Syntax Highlight [new] | Opera Library! | Winamp Library | GetFolderToMenu | Custom_InputBox()! | _FileRun UDF | _CheckInput() UDF | _GUIInputSetOnlyNumbers() UDF | _FileGetValidName() UDF | _GUICtrlCreateRadioCBox UDF | _GuiCreateGrid() | _PathSplitByRegExp() | _GUICtrlListView_MoveItems - UDF | GUICtrlSetOnHover_UDF! | _ControlTab UDF! | _MouseSetOnEvent() UDF! | _ProcessListEx - UDF | GUICtrl_SetResizing - UDF! | Mod. for _IniString UDFs | _StringStripChars UDF | _ColorIsDarkShade UDF | _ColorConvertValue UDF | _GUICtrlTab_CoverBackground | CUI_App_UDF | _IncludeScripts UDF | _AutoIt3ExecuteCode | _DragList UDF | Mod. for _ListView_Progress | _ListView_SysLink | _GenerateRandomNumbers | _BlockInputEx | _IsPressedEx | OnAutoItExit Handler | _GUICtrlCreateTFLabel UDF | WinControlSetEvent UDF | Mod. for _DirGetSizeEx UDF
Examples: ScreenSaver Demo - Matrix included | Gui Drag Without pause the script | _WinAttach()! | Turn Off/On Monitor | ComboBox Handler Example | Mod. for "Thinking Box" | Cool "About" Box | TasksBar Imitation DemoLike the examples/UDFs? Please rate the topic (up-right corner of the post header: Rating
)* === My topics === *
==========================================================AutoIt is simple, subtle, elegant. © AutoIt Team
Posted 27 December 2007 - 04:24 PM
FileCopy(@WindowsDir & "\media\tada.wav", @ScriptDir & "\tada.wav") SoundPlay(@ScriptDir & "\tada.wav", 0) Sleep(5000) SoundPlay("") FileDelete(@ScriptDir & "\tada.wav")
Visit the SciTE4AutoIt3 Download page for the latest versions Forum Rules
Live for the present,
Dream of the future,
Learn from the past.
Posted 27 December 2007 - 04:54 PM
Posted 27 December 2007 - 05:13 PM
It is also the way to stop the soundfile from playing when submitted in the background so maybe add that too when updating the Helpfile page remarks section?That's a good idea. We should just document that as the functionality to close a SoundPlay() handle.
Visit the SciTE4AutoIt3 Download page for the latest versions Forum Rules
Live for the present,
Dream of the future,
Learn from the past.
Posted 04 January 2008 - 11:00 PM
Posted 05 January 2008 - 02:50 AM
A full sound function would be nice,
-Play
-Stop
-Pause/resume
-Length (or time when it will stop by itself)
If there was something like this we could open up way more possibilities.
Work with wavs and mp3's (which I think it does now for soundplay)
Edited by JustinReno, 05 January 2008 - 02:50 AM.
Posted 05 January 2008 - 04:37 AM
Also MIDIThese play Wav, MP3, and I think WMA
Edited by DBak, 05 January 2008 - 04:38 AM.

Posted 05 January 2008 - 06:07 PM
How did you get it to play ogg??EDIT: along with MIDI there is ogg
Posted 11 January 2008 - 11:24 PM
0 members, 0 guests, 0 anonymous users