Page 1 of 1
How to add a sound to a custom toolbar button?
Posted: 15 Apr 2013 16:32
by ghost zero
How can I add a sound to a custom toolbar button? What is the script for it?
BTW: I want to insert it into and existing script. Anything special I have to type inbetween?
Re: How to add a sound to a custom toolbar button?
Posted: 15 Apr 2013 16:58
by serendipity
Command sound:
Code: Select all
::help "idh_scripting_comref.htm#idh_sc_sound"
Re: How to add a sound to a custom toolbar button?
Posted: 15 Apr 2013 17:16
by ghost zero
thanks, but how do i make the button play a sound and then run this [immediately, without waiting for sound to complete]...
"C:\Windows\System32\shell32.dll /163" run "control appwiz.cpl"
Re: How to add a sound to a custom toolbar button?
Posted: 15 Apr 2013 17:29
by Stefan
Maybe run() first,
then sound() second?
Re: How to add a sound to a custom toolbar button?
Posted: 15 Apr 2013 21:38
by ghost zero
i have this. but how can i make it so the sound plays first?
"C:\Windows\System32\shell32.dll /163" run "control appwiz.cpl"; sound "C:\sound.wav"
Re: How to add a sound to a custom toolbar button?
Posted: 16 Apr 2013 04:12
by serendipity
This doesn't work:
Code: Select all
sound "C:\sound.wav"; run "control appwiz.cpl";
Re: How to add a sound to a custom toolbar button?
Posted: 16 Apr 2013 14:12
by ghost zero
so is it a bug that we can't put the sound first, or what?
Re: How to add a sound to a custom toolbar button?
Posted: 16 Apr 2013 14:20
by TheQwerty
serendipity wrote:This doesn't work:
Code: Select all
sound "C:\sound.wav"; run "control appwiz.cpl";
It doesn't? Seems to be functioning correctly here.

Re: How to add a sound to a custom toolbar button?
Posted: 16 Apr 2013 16:54
by klownboy
Code: Select all
sound "C:\Windows\Media\Windows Balloon.wav"; run "control appwiz.cpl";
This worked fine for me too (Windows 7 x64). I didn't think it was working initially, but it turns out the XYplorer volume in the Volume Mixer in the Tray was turned way down to nearly "0" and you wouldn't know that necessarily unless you have the mixer open.
Re: How to add a sound to a custom toolbar button?
Posted: 16 Apr 2013 17:13
by serendipity
TheQwerty wrote:serendipity wrote:This doesn't work:
Code: Select all
sound "C:\sound.wav"; run "control appwiz.cpl";
It doesn't? Seems to be functioning correctly here.

No, it works fine for me.
My mistake, i put it wrongly, it was a question to ghost zero.
I meant, This doesn't work?
Re: How to add a sound to a custom toolbar button?
Posted: 16 Apr 2013 20:13
by ghost zero
ok now works. turns out i didn't need the: "C:\Windows\System32\shell32.dll /163"