ToKicoBrothers Posted April 14, 2007 Share Posted April 14, 2007 (edited) I was trying to make a wav to mp3 converter using lame and it doesn't work!!!;~ Name: SimpleLame 1.0 beta ;~ Author: ToKico Brothers ;~ http://tokico.blogspot.com/ ;~ Description: SimpleLame is a simple Wav to Mp3 Converter powered by Lame #include <GUIConstants.au3> GUICreate("SimpleLame 1.0 beta", 194, 185, 415, 125) GUICtrlCreateLabel("SimpleLame", 64, 8, 71, 17) GUICtrlSetFont(-1, 8, 800, 0, "MS Sans Serif") $wavinput = GUICtrlCreateButton("WAV Input", 8, 32, 81, 41) $mp3output = GUICtrlCreateButton("MP3 Output", 104, 32, 81, 41) $convert = GUICtrlCreateButton("Convert to MP3", 32, 120, 129, 49) $kbpersec = GUICtrlCreateInput(" Kb/Sec", 56, 88, 81, 21) GUISetState(@SW_SHOW) ;~ GUI Created by Koda While 1 $msg = GUIGetMsg() Switch $msg Case $GUI_EVENT_CLOSE Exit Case $wavinput $wavdialog = FileOpenDialog ( "WAV Input", @ScriptDir, "WAV Files (*.wav)") Case $mp3output $mp3dialog = FileSaveDialog ( "MP3 Output", @ScriptDir, "MP3 Files (*.mp3)") Case $convert Run ( "lame.exe -h -b " & $kbpersec & " " & $wavdialog & " " & $mp3dialog ) EndSwitch WEndCan anybody tell me what I am doing wrong?? Edited April 14, 2007 by ToKicoBrothers 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...
MHz Posted April 14, 2007 Share Posted April 14, 2007 Try this for your Run) function Run ( 'lame.exe -h -b "' & $kbpersec & '" "' & $wavdialog & '" "' & $mp3dialog & '"' ) Notice the quotes. Singles and doubles quotes. Link to comment Share on other sites More sharing options...
ToKicoBrothers Posted April 14, 2007 Author Share Posted April 14, 2007 Try this for your Run) function Run ( 'lame.exe -h -b "' & $kbpersec & '" "' & $wavdialog & '" "' & $mp3dialog & '"' ) Notice the quotes. Singles and doubles quotes. Other problem: the lame.exe file is there (on the script dir.) but autoit says me that it isn't!! 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...
SadBunny Posted April 14, 2007 Share Posted April 14, 2007 Other problem: the lame.exe file is there (on the script dir.) but autoit says me that it isn't!! Try specifying the path for lame.exe, as in Run ( 'lame.exe -h -b "' & $kbpersec & '" "' & $wavdialog & '" "' & $mp3dialog & '"' , @scriptdir) Roses are FF0000, violets are 0000FF... All my base are belong to you. Link to comment Share on other sites More sharing options...
ToKicoBrothers Posted April 14, 2007 Author Share Posted April 14, 2007 Try specifying the path for lame.exe, as in Run ( 'lame.exe -h -b "' & $kbpersec & '" "' & $wavdialog & '" "' & $mp3dialog & '"' , @scriptdir) Still doesn't work!!!! 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...
SadBunny Posted April 14, 2007 Share Posted April 14, 2007 Still doesn't work!!!!Does it work when you specify the full pathname in the first Run() parameter, like Run ("D:\AutoIt\lame.exe ...................)? Roses are FF0000, violets are 0000FF... All my base are belong to you. Link to comment Share on other sites More sharing options...
GaryFrost Posted April 14, 2007 Share Posted April 14, 2007 Try Run ( @ScriptDir & '\lame.exe -h -b "' & $kbpersec & '" "' & $wavdialog & '" "' & $mp3dialog & '"') SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
ToKicoBrothers Posted April 14, 2007 Author Share Posted April 14, 2007 (edited) Try Run ( @ScriptDir & '\lame.exe -h -b "' & $kbpersec & '" "' & $wavdialog & '" "' & $mp3dialog & '"') Thanks!! It works now!! thanks SadBunny and Mhz too!! Edited April 14, 2007 by ToKicoBrothers 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...
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