Gif Posted May 4, 2007 Posted May 4, 2007 i have a combo box and it's role is something like a playlist and i want when i open a file, the opened file will be added in the combobox as an option... Case $msg = $btn_Open $varopen = FileOpenDialog("Open Music...","My Computer", "Music (*.wav;*.mp3)", 1) If @error Then MsgBox(0,"Wrong","No File(s) chosen") Else $input_open = GUICtrlSetData($input_open, $varopen, $varopen) EndIf this script adds the file to the combobox but when i open again a new file it replaces the existing one... i want it to be added along with the other one already opened.How?
BrettF Posted May 4, 2007 Posted May 4, 2007 I think you want this??? Case $msg = $btn_Open $varopen = FileOpenDialog("Open Music...","My Computer", "Music (*.wav;*.mp3)", 1) If @error Then MsgBox(0,"Wrong","No File(s) chosen") Else $input_open = GUICtrlSetData($input_open, GUICtrlRead($input_open) & "|" & $varopen, $varopen) EndIf UNTESTED! 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!
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