Page 1 of 1

Sound alert after lengthy file search operation ?

Posted: 22 Jun 2019 15:33
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 !

Re: Sound alert after lengthy file search operation ?

Posted: 25 Jun 2019 11:41
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! :)

Re: Sound alert after lengthy file search operation ?

Posted: 01 Jul 2019 11:29
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.

Re: Sound alert after lengthy file search operation ?

Posted: 01 Jul 2019 11:51
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)

Re: Sound alert after lengthy file search operation ?

Posted: 01 Jul 2019 15:40
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" ?

Re: Sound alert after lengthy file search operation ?

Posted: 01 Jul 2019 17:09
by admin
Nope.

I might add it.

Who is using those sounds anyway?

Re: Sound alert after lengthy file search operation ?

Posted: 01 Jul 2019 20:52
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?

Re: Sound alert after lengthy file search operation ?

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

Re: Sound alert after lengthy file search operation ?

Posted: 03 Jul 2019 18:45
by Filehero
admin wrote: ↑01 Jul 2019 21:45 For scripters there is the sound command. :)
:whistle: