madmorgan Posted February 9, 2010 Share Posted February 9, 2010 (edited) hello all, i want autoit to play mp3 when a use clicks a button. i dont want the file opening in windows maedia player or any thing like that i want it to play though autoit. the reson i want to do this is for uni i got to build a program for disabled people to help user's to them speek throw my program. here my idear. #include <GUIConstantsEx.au3> GUICreate("") ; will create a dialog box that when displayed is centered $button = GUICtrlCreateButton("Hello", 10, 10, 120, 20) $button2 = GUICtrlCreateButton("BYE", 10, 40, 120, 20) GUICtrlSetState($button, $GUI_CHECKED) GUISetState() ; Run the GUI until the dialog is closed While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop Case $msg = $button ;play MP3 file Hello. Case $msg = $button2 ;play MP3 file Bye. EndSelect WEnd hop you guy can help thanks Edited February 9, 2010 by madmorgan Link to comment Share on other sites More sharing options...
whim Posted February 9, 2010 Share Posted February 9, 2010 Do a forum search for "BASS" HTH, whim Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted February 9, 2010 Share Posted February 9, 2010 The native SoundPlay() will play most/all mp3's. If you open the helpfile and chack "Sound Management" you will find more advanced version of the native func. There's also BASS UDF by BrettF .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
madmorgan Posted February 9, 2010 Author Share Posted February 9, 2010 thanks guys will look it up and get back to you when i have built the program. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now