Sound alert after lengthy file search operation ?

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
snaileater
Posts: 23
Joined: 30 Jun 2013 17:41

Sound alert after lengthy file search operation ?

Post by snaileater »

I would like to receive a sound alert at the completion of lengthy file searches ...
(or in any other time consuming operations...)
Is there any way to achieve this in XYplorer ?
Thanks !

admin
Site Admin
Posts: 60526
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Sound alert after lengthy file search operation ?

Post by admin »

There is an old tweak that can play a sound of your choice when a backtground operation finishes:

Code: Select all

v9.50.0112 - 2010-09-30 12:03
  ...
    + Tweak to define a sound to be played after the completion of each 
      background job *if* the job was at least of a configurable duration.
        BJSoundJobDone=<full or portable path to a WAV file>
        BJSoundJobDuration=<number of seconds>
      BJSoundJobDuration defines the number of seconds a job has to take 
      at least in order to trigger the sound defined in BJSoundJobDone.
      For example:
        BJSoundJobDone="bum.wav"
        BJSoundJobDuration=66
      Now each background file operation that takes at least 66 seconds 
      would trigger playing "<xypath>\bum.wav" on completion.
And this one when ALL operations are completed:

Code: Select all

v9.50.0110 - 2010-09-28 20:24
    + Tweak to define a sound to be played when all pending background 
      jobs are completed.
        BJSoundAllDone=<full or portable path to a WAV file>
      FYI, a "portable path" supports environment variables and native 
      variables, and, if not full, is resolved relative to app path.
      Note that the sound will be asynchronously (=non-blocking) played 
      one time to its full length and at the current system volume for 
      WAV output. The only way to stop it prematurely would be to 
      execute this script line:
        ::sound; // stop any playing sound
      Hence the tip: choose a short sound! :)

snaileater
Posts: 23
Joined: 30 Jun 2013 17:41

Re: Sound alert after lengthy file search operation ?

Post by snaileater »

Sorry to ask but i wasn't able to get that tweak to work ...

I suppose it's an entry to insert in xyplorer.ini (?)

Here's what i've done :

Code: Select all

[Chris]
BJSoundJobDone="D:\[Documents-Chris]\Son et Vidéo\Sons\bells-tibetan-daniel-simon.wav"
BJSoundJobDuration=30
Am i forgetting anything ? Anything wrong with the file path ?

Thanks for your help.

admin
Site Admin
Posts: 60526
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Sound alert after lengthy file search operation ?

Post by admin »

No, it works like this:
https://www.xyplorer.com/faq-topic.php?id=tweak

(should have posted that link right away, excuse my laziness)

snaileater
Posts: 23
Joined: 30 Jun 2013 17:41

Re: Sound alert after lengthy file search operation ?

Post by snaileater »

The tweak seems to work for tasks like files copy and paste operations but not for find files searches.
Is it the expected behaviour ?
Aren't find files searches "background operations" ?

admin
Site Admin
Posts: 60526
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Sound alert after lengthy file search operation ?

Post by admin »

Nope.

I might add it.

Who is using those sounds anyway?

Filehero
Posts: 2644
Joined: 27 Feb 2012 18:50
Location: Windows 10 Pro x64

Re: Sound alert after lengthy file search operation ?

Post by Filehero »

admin wrote: 01 Jul 2019 17:09 Who is using those sounds anyway?
Me! I have a weekly lengthy scripted sync job chain (*), where an end-of-chain noise would makes sense.

*: hmmm, scripted sync jobs [ sync() ] are background file ops, aren't they?

admin
Site Admin
Posts: 60526
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Sound alert after lengthy file search operation ?

Post by admin »

For scripters there is the sound command. :)

Filehero
Posts: 2644
Joined: 27 Feb 2012 18:50
Location: Windows 10 Pro x64

Re: Sound alert after lengthy file search operation ?

Post by Filehero »

admin wrote: 01 Jul 2019 21:45 For scripters there is the sound command. :)
:whistle:

Post Reply