playing sounds with personnalised file operations

Features wanted...
serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

Re: playing sounds with personnalised file operations

Post by serendipity »

cslevine wrote:
Simply paste something like this into the address bar (of course with a file you have):
OK this works well.
But the tweak doesn't?

cslevine
Posts: 62
Joined: 15 May 2013 12:26

Re: playing sounds with personnalised file operations

Post by cslevine »

But the tweak doesn't?
still no working, for me.

serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

Re: playing sounds with personnalised file operations

Post by serendipity »

cslevine wrote:
But the tweak doesn't?
still no working, for me.
Could you please explain step-by-step how exactly you set the tweak?
And what exact file operation you are performing and expecting the BJ sound.

cslevine
Posts: 62
Joined: 15 May 2013 12:26

Re: playing sounds with personnalised file operations

Post by cslevine »

Could you please explain step-by-step how exactly you set the tweak?
And what exact file operation you are performing and expecting the BJ sound.
OK : There is a part of my XYplorer.ini

Code: Select all

; Tweak: time (in ms) between consecutive background jobs
MsecDelayNextQueuedJob=0
BJSoundAllDone="test.wav"
BJSoundAllDuration=0
BJSoundJobDone="test.wav"
BJSoundJobDuration=0
FileOpProgressModeless=1
NoDeleteConfirmation=0
PreservePermissionsOnMove=1
; Tweak: turn off safety check on move up
and test.wav si in XYplorer.
( Tested yesterday with the adress bar method, it worked. But i did try too with hard path C:\test.wav )

Then, i was expecting that, at the end of a custom file copy, this should sound.
and checked backgrounds operations.

cslevine
Posts: 62
Joined: 15 May 2013 12:26

Re: playing sounds with personnalised file operations

Post by cslevine »

There is some news :
The sound works sometimes !

it works only when using KB shortcuts Ctrl-C Ctrl-V
but not with drag and drop operations between different separate windows ( that i use to do daily to minimise risks of false operations )


( the copying files between windows was the most friendly user thing that was invented
for daily operation, but it seams to being missed by most of peaple todays, but from
window to another leads to less mis-operations, bigger mouse movements )

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

Re: playing sounds with personnalised file operations

Post by admin »

Window to window... then you should know that it's always the drop target which handles the file operation. So the target window must be configured to play the sounds!

cslevine
Posts: 62
Joined: 15 May 2013 12:26

Re: playing sounds with personnalised file operations

Post by cslevine »

OK, the target is well configured, because this is XY too.
so that if this is CTRL-V the sounds plays.
but not with mouse move

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

Re: playing sounds with personnalised file operations

Post by admin »

OK, I will test that later.

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

Re: playing sounds with personnalised file operations

Post by admin »

Works fine as expected with drag and drop. Please recheck your settings.

yusef88
Posts: 1148
Joined: 28 Jan 2013 03:50
Location: Windows 8.1 32-bit

Re: playing sounds with personnalised file operations

Post by yusef88 »

where's navigation sound in tweaks :?:

giuliastar
Posts: 365
Joined: 14 Sep 2013 07:22

Re: playing sounds with personnalised file operations

Post by giuliastar »

admin wrote:There are some tweaks for this:

Code: Select all

BJSoundAllDone=
BJSoundAllDuration=0
BJSoundJobDone=
BJSoundJobDuration=0
Some info from the change log:

Code: Select all

    + 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.

    + Tweak to define a minimal duration of all background jobs within 
      one queue until the sound defined in BJSoundAllDone is played.
        BJSoundAllDuration=<number of seconds>

    + 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! :)
hi
i should i add in the ini files for the portable version that i have on my stick?
but is there a list of evens?

and can i customize only 1 sound ? i mean 1 sound for every taks/operations

thanks

TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Re: playing sounds with personnalised file operations

Post by TheQwerty »

The instructions here tell you exactly how to tweak your configuration. Whether your install is portable or not makes no difference in this.
giuliastar wrote:but is there a list of evens?
If you mean events, then no. These tweaks only play when either one job has completed or all jobs have completed (depending on tweak) and then only if they are as long as the duration tweaks specify.

giuliastar
Posts: 365
Joined: 14 Sep 2013 07:22

Re: playing sounds with personnalised file operations

Post by giuliastar »

TheQwerty wrote:The instructions here tell you exactly how to tweak your configuration. Whether your install is portable or not makes no difference in this.
giuliastar wrote:but is there a list of evens?
If you mean events, then no. These tweaks only play when either one job has completed or all jobs have completed (depending on tweak) and then only if they are as long as the duration tweaks specify.
for example
can i configure 1 sound for copy, 1 sound for move and 1 sound for wipe?

thanks very kind TheQwerty

TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Re: playing sounds with personnalised file operations

Post by TheQwerty »

giuliastar wrote:can i configure 1 sound for copy, 1 sound for move and 1 sound for wipe?
No, at this time the sound is played for all operations regardless of type.

giuliastar
Posts: 365
Joined: 14 Sep 2013 07:22

Re: playing sounds with personnalised file operations

Post by giuliastar »

TheQwerty wrote:
giuliastar wrote:can i configure 1 sound for copy, 1 sound for move and 1 sound for wipe?
No, at this time the sound is played for all operations regardless of type.
thanks
now it's everything clear

should ask like whishes to customize xyplorer operations with different sounds

thanks

Post Reply