Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 7 of 7
  1. #1
    Join Date
    Jul 2005
    Location
    Egypt
    Posts
    88

    Talking Is it possible to do such an action ? :o)

    Hi again experts ,

    Now I am confused and I wanna know what to do in such case..

    When I use this action (in a combo box ofcourse) : selected = ComboBox.GetSelected("Plugin1");

    it's known that [selected] by then is equal to one or two .. etc. // I want to insert the number of the "selected" let's say "one" to load an audio which is named [1.ogg] in the background .. I use this action :

    Audio.Load(CHANNEL_BACKGROUND, "AutoPlay\\Audio\\"..selected..".ogg", true, false);

    so am I right which is probably a non-sense question coz it does not work
    Or is there something wrong which I should fix it or I am goin on the wrong way ?

  2. #2
    Join Date
    Jul 2005
    Location
    Egypt
    Posts
    88
    Is it hard or it's my fault I did not explain clearly what I want ??

  3. #3
    Join Date
    Sep 2002
    Location
    Sol 3
    Posts
    3,160
    Does it actually return a value or does it return -1 for an error?

    It looks like it should work. I will try to play with it later tonight.
    TJ-Tigger
    "A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
    "Draco dormiens nunquam titillandus."
    Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine

  4. #4
    Join Date
    Sep 2002
    Location
    Sol 3
    Posts
    3,160
    Remember also that the combobox has both a text field and a data field. you can store the filename in the data and use that to when you load the audio.

    Tigg


    edit this worked

    Code:
    nSel = ComboBox.GetSelected(this);
    if nSel ~= -1 then
    	Audio.Load(CHANNEL_BACKGROUND, "AutoPlay\\Audio\\"..nSel..".ogg", true, false);
    end
    Last edited by TJ_Tigger; 08-31-2005 at 01:43 PM.
    TJ-Tigger
    "A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
    "Draco dormiens nunquam titillandus."
    Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine

  5. #5
    Join Date
    Jul 2002
    Location
    USA
    Posts
    3,959
    It looks right, are you sure you have a 1.ogg in the Audio folder?

    [Tigs hoppin' around fast these days!]

  6. #6
    Join Date
    Sep 2002
    Location
    Sol 3
    Posts
    3,160
    Quote Originally Posted by Worm
    It looks right, are you sure you have a 1.ogg in the Audio folder?

    [Tigs hoppin' around fast these days!]
    Depends on where I am and what I am doing. Lately I have had time in the home office and this week while I am on the road I am in training and I check the board at lunch and on breaks.

    TJ-Tigger
    "A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
    "Draco dormiens nunquam titillandus."
    Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine

  7. #7
    Join Date
    Jul 2005
    Location
    Egypt
    Posts
    88
    thnx a lot it worked .. Man , I like this forum

Similar Threads

  1. what action do yo use to find the installsource?
    By tricky1979 in forum AutoPlay Media Studio 5.0
    Replies: 7
    Last Post: 07-22-2006, 01:35 PM
  2. Tip: Access Global Functions Without Closing Action Editor
    By Corey in forum AutoPlay Media Studio 5.0 Examples
    Replies: 15
    Last Post: 12-16-2004, 09:04 PM
  3. INFO: Tips for Debugging Action Lists in AutoPlay Media Studio 4.0
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-03-2002, 08:38 AM
  4. SUF6.0.0.2 -- installer hangs.
    By jassing in forum Setup Factory 6.0
    Replies: 4
    Last Post: 12-19-2001, 11:28 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