;~ #include <WindowsConstants.au3>
;~ #include <file.au3>
;~ #include <array.au3>
;~ #include <ButtonConstants.au3>
;~ #include <EditConstants.au3>
;~ #include <TabConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <Process.au3>
Opt("GUIOnEventMode", 1) ;Gui事件响应模式
Opt("GUIEventOptions", 1) ;修改特殊的 Gui 函数的返回值类型 1=立即通知
;~ Global $IEHCDesp="D:\MP3合并文"
$MPinForm = GUICreate("MP3文件合并工具", 430, 460, -1, -1,-1, 0x00000018);
GUICtrlCreateGroup("选择歌曲", 10, 10, 410, 190)
GUICtrlCreateLabel("第1首:",20, 40, 50, 22, 0, "")
Global $MPinInput1 = GUICtrlCreateInput("", 60, 35, 280, 22) ;拖进文件的框框
GUICtrlSetState(-1, $GUI_DROPACCEPTED)
GUICtrlSetTip(-1, "先清空,再拖拽到我这边来")
Global $MPinButton1 = GUICtrlCreateButton("浏览(&V)", 350, 33, 60, 25)
GUICtrlCreateLabel("第2首:",20, 80, 50, 22, 0, "")
Global $MPinInput2 = GUICtrlCreateInput("", 60, 75, 280, 22) ;拖进文件的框框
GUICtrlSetState(-1, $GUI_DROPACCEPTED)
GUICtrlSetTip(-1, "先清空,再拖拽到我这边来")
Global $MPinButton2 = GUICtrlCreateButton("浏览(&V)", 350, 73, 60, 25)
GUICtrlCreateLabel("第3首:",20, 120, 50, 22, 0, "")
Global $MPinInput3 = GUICtrlCreateInput("", 60, 115, 280, 22) ;拖进文件的框框
GUICtrlSetState(-1, $GUI_DROPACCEPTED)
GUICtrlSetTip(-1, "先清空,再拖拽到我这边来")
GUICtrlCreateLabel("第4首:",20, 160, 50, 22, 0, "")
Global $MPinInput4 = GUICtrlCreateInput("", 60, 155, 280, 22) ;拖进文件的框框
GUICtrlSetState(-1, $GUI_DROPACCEPTED)
GUICtrlSetTip(-1, "先清空,再拖拽到我这边来")
Global $MPinButton5 = GUICtrlCreateButton("开始合并(&V)", 150, 260, 80, 25)
GUICtrlSetOnEvent(-1,"_Mpinbutton5")
Global $MPinInput5 = GUICtrlCreateInput(@DesktopDir, 80, 225, 230, 20) ;IE缓存保存到目录路径
$IEHCButton3 = GUICtrlCreateButton("保存到", 20, 223, 55, 25)
;~ GUICtrlSetOnEvent(-1, "_IEHCKeep")
$IEHCButton4 = GUICtrlCreateButton("打开(&O)", 315, 223, 55, 25)
;~ GUICtrlSetOnEvent(-1, "_IEHCopenFile")
GUISetOnEvent($GUI_EVENT_CLOSE, "_mp3inexit")
GUISetOnEvent($GUI_EVENT_DROPPED, "_MpinDropped")
GUISetState(@SW_SHOW)
;~ GUISetState(@SW_SHOW,$MPinForm)
While 1
Sleep(500)
WEnd
Func _mp3inexit()
Exit
EndFunc
Func _MpinDropped()
EndFunc
Func _Mpinbutton5()
$MPin_Dropped01 = GUICtrlRead($MPinInput1) ;读取第一首MP3
$MPin_Dropped02 = GUICtrlRead($MPinInput2);读取第二首MP3
$MPin_Dropped03 = GUICtrlRead($MPinInput3)
$MPin_Dropped04 = GUICtrlRead($MPinInput4)
$Mpinlujing = GUICtrlRead($MPinInput5) ;这是读取路径
_RunDOS("copy /b"&$MPin_Dropped01&"+ "&$MPin_Dropped02&"' '"&$Mpinlujing&"/合并.MP3""" )
;~ MsgBox(64, '温馨提示', $MPin_Dropped01, 3, $MPinForm)
;~ RunWait(@ComSpec&' /c copy /b *.mp3 Joined.mp3',$cmdline[1],@SW_HIDE)
;~ _RunDOS(copy /b d:\a.mp3+d:\b.mp3 e:\c.mp3 )
EndFunc