Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2005
    Posts
    172

    Using the WMP plugin and ComboBox

    For so far i know how to use them BUT
    the prob is that i want to use more FILE functions.

    Example:
    I use this code (thanks to Mina) On Show


    -- :: Get the selected item ::
    tSelected = ComboBox.GetSelected("ComboBox1");
    if tSelected then
    -- i.e. tSelected == true (boolean)
    File = ComboBox.GetItemData("ComboBox1", tSelected);
    StatusDlg.SetTitle("whatever..");
    StatusDlg.SetStatusText("loading.");
    StatusDlg.Show(MB_ICONNONE, false);

    MediaPlayer.Load("Plugin1", File);

    StatusDlg.SetMessage("loaded!");
    StatusDlg.Hide();
    -- When loading is finished:
    MediaPlayer.Play("Plugin1");
    -- Note that the loading time depends on your connection speed.
    else
    -- If tSelected == false, then there is nothing selected
    Dialog.Message("Error", "bla bla.");
    end

    If you see the File is in use by: File = ComboBox.GetItemData("ComboBox1", tSelected);

    I want to use the File.OpenURL and some others but can't because then you get a error. On index globlal File thingy.

    So i wanna know is there a way to code it in a way it doesn't make a scene.

    I use a ComboBox for the data but i have only 1 stream needed for the app.
    I think that a ComboBox is overkill for 1 item.

    Thanks in advance

  2. #2
    Join Date
    Oct 2005
    Location
    American Dubai
    Posts
    629
    Hi
    Since you have only 1 url to play, you could code something like
    Code:
    StreamFile = {}
    StreamFile[1] == --add url here. (ex. "http://www.fiercefm.co.uk/fiercefm.asx")
    StatusDlg.SetTitle("whatever..");
    StatusDlg.SetStatusText("loading.");
    StatusDlg.Show(MB_ICONNONE, false);
    
    MediaPlayer.Load("Plugin1", StreamFile[1]);
    
    StatusDlg.SetMessage("loaded!");
    StatusDlg.Hide();
    -- When loading is finished:
    MediaPlayer.Play("Plugin1");
    -- Note that the loading time depends on your connection speed.
    else
    -- If tSelected == false, then there is nothing selected
    Dialog.Message("Error", "bla bla.");
    end

  3. #3
    Join Date
    Apr 2005
    Posts
    172
    Thanks Mina

    I test it and it works 100%

    Thanks again

Similar Threads

  1. Populating ComboBox Plugin
    By octane6228 in forum AutoPlay Media Studio 5.0
    Replies: 2
    Last Post: 06-09-2005, 03:34 PM
  2. ComboBox Plugin not in Insert Menu
    By ChatNoir in forum AutoPlay Media Studio 5.0
    Replies: 5
    Last Post: 03-21-2005, 09:04 AM
  3. Indigo Rose Plugin Changes
    By Lorne in forum AutoPlay Media Studio 5.0
    Replies: 4
    Last Post: 09-27-2004, 04:17 AM
  4. ComboBox plugin functionality.
    By longedge in forum AutoPlay Media Studio 5.0
    Replies: 13
    Last Post: 08-20-2004, 03:37 PM
  5. Spotlight: ComboBox Object Plugin
    By Desmond in forum AutoPlay Media Studio 5.0
    Replies: 2
    Last Post: 03-02-2004, 01:10 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts