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
Professional Software Development Tools
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
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
@ Intrigued --> this post is for ams4, not ams5 or ams6Originally Posted by Intrigued
@ 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
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.Originally Posted by Mina
![]()
Intrigued