Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 2006
    Posts
    7

    Wink Can Apms6 play sound when I click an item in listbox

    hi everybody...
    I want to khnow if it is possible to play a sound when i click an item in listbox
    Thank you for your attention

  2. #2
    Join Date
    Dec 2003
    Location
    Location! Location!
    Posts
    6,137
    I highly recommend the Search link (in the black strip up above this text, in the window). It really does work well and returns relevant posts.

    But, here is one I found doing such:

    http://www.indigorose.com/forums/sho...box+play+sound
    Intrigued

  3. #3
    Join Date
    Oct 2005
    Location
    American Dubai
    Posts
    629
    Quote Originally Posted by Intrigued
    I highly recommend the Search link (in the black strip up above this text, in the window). It really does work well and returns relevant posts.

    But, here is one I found doing such:

    http://www.indigorose.com/forums/sho...box+play+sound
    @ Intrigued --> this post is for ams4, not ams5 or ams6
    @ Roohalh --> See: Page Jump Based On Listbox. You can change the Page.Jump actions to Audio.Load

    The script should be written in the 'On Select' tab of the listbox object. You could code something like
    Code:
    count = ListBox.GetSelectedCount("ListBox1");
    if count == 1 then
    selc = ListBox.GetSelected("ListBox1");
    elseif count ~= 1 then
    message = Dialog.Message("www.mina-e.com", "Please select only one page!", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
    end
    if selc[1] == 1 then
    Audio.Load(CHANNEL_NARRATION, "AutoPlay\\Audio\\1.wav", false, false);
    elseif selc[1] == 2 then
    Audio.Load(CHANNEL_NARRATION, "AutoPlay\\Audio\\2.wav", false, false);
    elseif selc[1] == 3 then
    Audio.Load(CHANNEL_NARRATION, "AutoPlay\\Audio\\3.wav", false, false);
    elseif selc[1] == 4 then
    Audio.Load(CHANNEL_NARRATION, "AutoPlay\\Audio\\4.wav", false, false);
    elseif selc[1] == 5 then
    Audio.Load(CHANNEL_NARRATION, "AutoPlay\\Audio\\5.wav", false, false);
    end

  4. #4
    Join Date
    Dec 2003
    Location
    Location! Location!
    Posts
    6,137
    Quote Originally Posted by Mina
    @ Intrigued --> this post is for ams4, not ams5 or ams6
    Good catch, I missed that. But that brings up another point. I could (should have) limited my search to say the AMS 6 forum area.

    Intrigued

Similar Threads

  1. Bonus: Something to Share
    By sside in forum AutoPlay Media Studio 5.0 Examples
    Replies: 79
    Last Post: 03-10-2005, 07:25 AM
  2. Unusual request..
    By M626 in forum AutoPlay Media Studio 5.0
    Replies: 11
    Last Post: 01-07-2005, 07:57 PM
  3. ListBox double click blues
    By Bruce in forum AutoPlay Media Studio 5.0
    Replies: 8
    Last Post: 01-23-2004, 09:56 AM
  4. How to play a sound when someone closes?
    By T0Rtur3 in forum AutoPlay Media Studio 4.0
    Replies: 2
    Last Post: 06-25-2003, 02:22 PM
  5. How can I play a sound file when I click on a item of a listbox?
    By angelo in forum AutoPlay Media Studio 4.0
    Replies: 1
    Last Post: 03-16-2003, 10:53 AM

Posting Permissions

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