PDA

View Full Version : Strange Request - Audio associated with a tool icon


MMccomb
2005-06-13, 04:06 PM
Co-worker approached me with a question about adding audio to a tool icon.
Don't worry, I'm not going to assign sound clips to all the icons =-)

He's got a couple custom buttons that he's like to have sound associated with.
I'm assuming this would be done through the shell option somehow?

Any ideas?

Thanks,

Mitch

bbapties
2005-06-13, 04:12 PM
Check out this thread (http://forums.augi.com/showthread.php?t=7235)... I did this in the past...... it works pretty good.

MMccomb
2005-06-13, 04:16 PM
Thanks for the help.

MMccomb
2005-06-14, 04:12 PM
Looked at your post.
Copied, pasted and modified to locate a different .wav file.
Can't seem to get it to work.

Does this code still apply to 2006?

kennet.sjoberg
2005-06-15, 09:12 AM
If you use doslib you can run
(dos_wav "C:\\WINDOWS\\Media\\tada.wav" )

: ) Happy Computing !

kennet

Robert.Hall
2005-06-15, 01:32 PM
I must be lost on this one.........I use this code as a macro?????

kennet.sjoberg
2005-06-15, 02:02 PM
I must be lost on this one.........I use this code as a macro?????
and ?

^C^C(dos_wav "C:/WINDOWS/Media/tada.wav" )

But Doslib must be loaded first, check here :

(if (not (member "doslib2k.arx" (arx))) ;; 2002
(if (findfile "doslib2k.arx")
(arxload "doslib2k")
(princ "Yes I am lost" )
)
(princ "doslib is already loaded")
): ) Happy Computing !

kennet