Bounda Posted March 24, 2006 Share Posted March 24, 2006 im making an AutoAmp Player to play music using Autoit but problem is i cant get the song to stop.. heres the code cna ne1 help ;AutoAmp Player ;Plays Music ;Many things To Be Added ; --Bounda-- ;-------------------------- #include <GUIConstants.au3> GUICreate("AutoAmp Player", 300, 100) $Play = GUICtrlCreateButton("Play", 10, 10) $Stop = GUICtrlCreateButton("Stop", 50, 10) GUISetState() While 1 $msg = GuiGetMsg() Select Case $msg = $GUI_EVENT_CLOSE Exit Case $msg = $Play ButtonPressed() EndSelect WEnd Func ButtonPressed() $song = InputBox("Song", "Please insert the name of the song with .mp3") SoundPlay($song& ".mp3") Select Case $msg = $GUI_EVENT_CLOSE Exit Case $msg = $Stop Exit EndSelect EndFunc CS:S Aimbot - List From INI Funcs Link to comment Share on other sites More sharing options...
Developers Jos Posted March 24, 2006 Developers Share Posted March 24, 2006 ;AutoAmp Player ;Plays Music ;Many things To Be Added ; --Bounda-- ;-------------------------- #include <GUIConstants.au3> GUICreate("AutoAmp Player", 300, 100) $Play = GUICtrlCreateButton("Play", 10, 10) $Stop = GUICtrlCreateButton("Stop", 50, 10) GUISetState() While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE Exit Case $msg = $Play ButtonPressed() Case $msg = $GUI_EVENT_CLOSE Exit Case $msg = $Stop Exit EndSelect WEnd Func ButtonPressed() $song = InputBox("Song", "Please insert the name of the song with .mp3") SoundPlay($song & ".mp3") EndFunc ;==>ButtonPressed SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Bounda Posted March 24, 2006 Author Share Posted March 24, 2006 that closes the whole player. CS:S Aimbot - List From INI Funcs Link to comment Share on other sites More sharing options...
Developers Jos Posted March 24, 2006 Developers Share Posted March 24, 2006 that closes the whole player.Case $msg = $Stop SoundPlay("") SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Bounda Posted March 24, 2006 Author Share Posted March 24, 2006 is there also a way to pause? CS:S Aimbot - List From INI Funcs Link to comment Share on other sites More sharing options...
seandisanti Posted March 24, 2006 Share Posted March 24, 2006 is there also a way to pause?almost definitely. who's making this program again? 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