|
|||||||
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
||||
|
||||
|
How do I make a ComboBox object hold a list of files and open the selected file?
Question
How do I make a ComboBox object hold a list of file and open the selected file? Answer The best way to make a comboBox object hold a list of files and open the selected one at runtime is: 1) In the ComboBox settings give each entry an appropriate display name under the section Item Text 2) In the ComboBox settings give each entry a link to a file located in the docs folder. An example would be AutoPlay\\Docs\\MyPDF.pdf 3) In the Script -> On Select tab you could then use this generic script: Code:
-- Get the selected index
selected = ComboBox.GetSelected("ComboBox1");
-- Get the data (file path) of that entry
data = ComboBox.GetItemData("ComboBox1", selected);
-- Open the file
File.Open(data, "", SW_SHOWNORMAL);
|
![]() |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Open one zip file with pass, with various pdf files, from list box | lepinski | AutoPlay Media Studio 6.0 | 6 | 06-06-2007 05:02 PM |
| Mac autostart function??? | Protocol | AutoPlay Media Studio 4.0 | 21 | 06-26-2003 11:25 AM |
| FAQ: AutoPlay Menu Studio 3.0 Frequently Asked Questions | Support | AutoPlay Menu Studio 3.0 | 0 | 10-10-2002 02:15 PM |
| HOWTO: Open an HTML Help File to a Specific Topic | Support | AutoPlay Media Studio 4.0 Examples | 0 | 10-01-2002 03:24 PM |
All times are GMT -6. The time now is 06:36 AM.








Linear Mode

