ToKicoBrothers Posted May 4, 2007 Share Posted May 4, 2007 Here's my first official script! ;~ Name: SimplePlayer 1.0 ;~ Author: ToKico Brothers ;~ tokico.pt@gmail.com ;~ Description: This script is a very simple music player. #include <GUIConstants.au3> #Region ### START Koda GUI section ### $Form2 = GUICreate(" SimplePlayer 1.0", 226, 61, 303, 219) $Button1 = GUICtrlCreateButton("Play", 8, 8, 65, 25, 0) $Button2 = GUICtrlCreateButton("Stop", 152, 8, 65, 25, 0) $Button3 = GUICtrlCreateButton("Open", 80, 24, 65, 33, 0) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Button3 $opendialog = FileOpenDialog ( "Open Music...", @ScriptDir, "Music (*.*)") Case $Button1 SoundPlay ( $opendialog ) Case $Button2 SoundPlay ( "" ) EndSwitch WEnd It's very simple, but I'll make more versions!SimplePlayer.au3 My Scripts: SimplePlayer 1.0 - A very simple music player. PCInfo 1.2 - A script that displays PC information. Link to comment Share on other sites More sharing options...
Toady Posted May 4, 2007 Share Posted May 4, 2007 Wow! GJ, keep up the good work! www.itoady.com A* (A-star) Searching Algorithm - A.I. Artificial Intelligence bot path finding Link to comment Share on other sites More sharing options...
Sn0opy Posted May 4, 2007 Share Posted May 4, 2007 hehe, very easy script^^ try read the file name or the id3-tag to display the song's name anywhere in the player. and maybe you could make the gui smaller, more simple Link to comment Share on other sites More sharing options...
BillLuvsU Posted May 4, 2007 Share Posted May 4, 2007 Good for a first script. Keep on learning! [center][/center]Working on the next big thing.Currently Playing: Halo 4, League of LegendsXBL GT: iRememberYhslaw Link to comment Share on other sites More sharing options...
James Posted May 4, 2007 Share Posted May 4, 2007 Agreed. Keep working..Some ideas:Image buttonsAbillity to read the ID3-Tag of the song, and then display it.And to keep working on it. Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
Kip Posted May 4, 2007 Share Posted May 4, 2007 maybe balance or a timeline. But then it isnt a very simple script anymore. MailSpons: Fake SMTP server for safe email testing Dutch postcode & address API. Link to comment Share on other sites More sharing options...
alex OF DEATH Posted May 5, 2007 Share Posted May 5, 2007 I made this a while ago. Steal some ideas from it or whatever, I don't personally care about the script at all anymore. Have fun? expandcollapse popup#include <GUIConstants.au3> #Include <GuiList.au3> Opt("GUIOnEventMode", 1) $Form1 = GUICreate("SimplePlayer", 424, 143, 219, 162) $VolumeControl = GUICtrlCreateSlider(240, 88, 105, 41) GUICtrlSetOnEvent ( $VolumeControl, "VolumeAdjust" ) $repeat = GUICtrlCreateCheckbox("Repeat?", 344, 88, 65, 17) $Play = GUICtrlCreateCheckbox("Play/Stop", 344, 112, 73, 25) GUICtrlSetOnEvent ( $Play, "Play" ) GUICtrlSetOnEvent ( $Repeat, "Exot" ) $PlayList = GUICtrlCreateList("", 0, 16, 233, 121) $SongOpen = GUICtrlCreateButton("Open a Song(s)", 248, 48, 97, 33, 0) GUICtrlSetOnEvent ( $songOpen, "OpenSong" ) GUISetState(@SW_SHOW) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd ;---------------------GUI ^ ------ Functions v --------------------- Func OpenSong() $File = FileOpenDialog ( "Select Song Please", "C:", "Mp3 (*.Mp3)" , 4 ) $Text = $File $Name = FileGetShortName ($text, 1) GUICtrlSetData ( $playlist, "" & $name ) Play() EndFunc Func Play() SOUNDPLAY ( GuiCTRLREAD ( $Playlist) , $PlayList ) Endfunc Func volumeAdjust() SoundSetWaveVolume(GuiCTRLread ($VolumeControl ) ) EndFunc Func exot() Exit EndFunc Link to comment Share on other sites More sharing options...
ToKicoBrothers Posted May 5, 2007 Author Share Posted May 5, 2007 Thanks guys! Right now I'm developing version 1.2 with:Image buttonsVolume SliderID3 Tags (Maybe) My Scripts: SimplePlayer 1.0 - A very simple music player. PCInfo 1.2 - A script that displays PC information. Link to comment Share on other sites More sharing options...
ToKicoBrothers Posted May 5, 2007 Author Share Posted May 5, 2007 For the next version I will call it: ToKicoPlayer. Like it? My Scripts: SimplePlayer 1.0 - A very simple music player. PCInfo 1.2 - A script that displays PC information. Link to comment Share on other sites More sharing options...
James Posted May 6, 2007 Share Posted May 6, 2007 Sounds good Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
BrettF Posted May 6, 2007 Share Posted May 6, 2007 For the next version I will call it: ToKicoPlayer. Like it? Catchy Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! 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