How to add a sound to a custom toolbar button?
-
ghost zero
- Posts: 842
- Joined: 26 Apr 2010 17:48
How to add a sound to a custom toolbar button?
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?
BTW: I want to insert it into and existing script. Anything special I have to type inbetween?
-
serendipity
- Posts: 3360
- Joined: 07 May 2007 18:14
- Location: NJ/NY
Re: How to add a sound to a custom toolbar button?
Command sound:
Code: Select all
::help "idh_scripting_comref.htm#idh_sc_sound"-
ghost zero
- Posts: 842
- Joined: 26 Apr 2010 17:48
Re: How to add a sound to a custom toolbar button?
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"
"C:\Windows\System32\shell32.dll /163" run "control appwiz.cpl"
-
Stefan
- Posts: 1360
- Joined: 18 Nov 2008 21:47
- Location: Europe
Re: How to add a sound to a custom toolbar button?
Maybe run() first,
then sound() second?
then sound() second?
-
ghost zero
- Posts: 842
- Joined: 26 Apr 2010 17:48
Re: How to add a sound to a custom toolbar button?
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"
"C:\Windows\System32\shell32.dll /163" run "control appwiz.cpl"; sound "C:\sound.wav"
-
serendipity
- Posts: 3360
- Joined: 07 May 2007 18:14
- Location: NJ/NY
Re: How to add a sound to a custom toolbar button?
This doesn't work:
Code: Select all
sound "C:\sound.wav"; run "control appwiz.cpl"; -
ghost zero
- Posts: 842
- Joined: 26 Apr 2010 17:48
Re: How to add a sound to a custom toolbar button?
so is it a bug that we can't put the sound first, or what?
-
TheQwerty
- Posts: 4373
- Joined: 03 Aug 2007 22:30
Re: How to add a sound to a custom toolbar button?
It doesn't? Seems to be functioning correctly here.serendipity wrote:This doesn't work:Code: Select all
sound "C:\sound.wav"; run "control appwiz.cpl";
-
klownboy
- Posts: 4462
- Joined: 28 Feb 2012 19:27
- Location: Windows 11, 25H2 Build 26200.8737 at 100% 2560x1440
Re: How to add a sound to a custom toolbar button?
Code: Select all
sound "C:\Windows\Media\Windows Balloon.wav"; run "control appwiz.cpl"; -
serendipity
- Posts: 3360
- Joined: 07 May 2007 18:14
- Location: NJ/NY
Re: How to add a sound to a custom toolbar button?
No, it works fine for me.TheQwerty wrote:It doesn't? Seems to be functioning correctly here.serendipity wrote:This doesn't work:Code: Select all
sound "C:\sound.wav"; run "control appwiz.cpl";
My mistake, i put it wrongly, it was a question to ghost zero.
I meant, This doesn't work?
-
ghost zero
- Posts: 842
- Joined: 26 Apr 2010 17:48
Re: How to add a sound to a custom toolbar button?
ok now works. turns out i didn't need the: "C:\Windows\System32\shell32.dll /163"
XYplorer Beta Club