Normal Topic Sound file (Read 16743 times)
SpencerWulwick
Senior Member
Members
*****
Offline



Posts: 677
Location: Wilton Manors, Florida
Joined: Jan 16th, 2005
Sound file
Feb 5th, 2005 at 9:33pm
Print Post Print Post  
Hi -

I just programmed a form to return a messagebox (when appropriate) "There is no companion record."

I don't like the intrusive sound that accompanies the message box though.  So, I was thinking that I could have a soft voice simply say "There is no companion record."

Is there anything built-in to Sesame that would allow me to play a recorded message.

If not, I would imagine that I could use @shell to open any sound player and play the recording, music or whatever,  If I had to resort to @shell, is it possible to do so "invisibly" meaning that the form remains in front of you to continue being worked on.

As usual, any suggestions will be appreciated.  Thanks!
  

- Spencer

    ** Practice random kindness & senseless acts of beauty!
Back to top
IP Logged
 
Steve_in_Texas
Senior Member
*****
Offline


No personal text

Posts: 893
Location: San Antonio
Joined: Feb 21st, 2004
Re: Sound file
Reply #1 - Feb 5th, 2005 at 10:32pm
Print Post Print Post  
I have only experimented a little, but I think the new Asynchshell command may do the trick.

Check the most recent programming supplement for more info.

Steve
  
Back to top
IP Logged
 
SpencerWulwick
Senior Member
Members
*****
Offline



Posts: 677
Location: Wilton Manors, Florida
Joined: Jan 16th, 2005
Re: Sound file
Reply #2 - Feb 5th, 2005 at 11:49pm
Print Post Print Post  
I may just be getting tired, but I would really like to get some means for playing a sound file, quickly.  So, if anyone has more complete information - to get me started - I would appreciate it.
  

- Spencer

    ** Practice random kindness & senseless acts of beauty!
Back to top
IP Logged
 
Steve_in_Texas
Senior Member
*****
Offline


No personal text

Posts: 893
Location: San Antonio
Joined: Feb 21st, 2004
Re: Sound file
Reply #3 - Feb 6th, 2005 at 1:29am
Print Post Print Post  
This will launch your default mp3 player and play a song (or sound file, etc)

Change the path and filename accordingly.

var nn as int

nn = @asynchshell("c:\music\song1.mp3")

Perhaps someone can post info on a free, small, mp3 player that loads quickly?

Or a Dos based mp3 player?

Steve
  
Back to top
IP Logged
 
SpencerWulwick
Senior Member
Members
*****
Offline



Posts: 677
Location: Wilton Manors, Florida
Joined: Jan 16th, 2005
Re: Sound file
Reply #4 - Feb 6th, 2005 at 4:43am
Print Post Print Post  
Steve -

It's too bad (for your sake ... but a break for me) that you are not "on salary" today.   lol

First, I have to tell you that I had planned on going out this evening and was heading for the shower when I heard my "mail notifier."  So, of course, I just went to take a quick peek and there were two more suggestions from you.  You guessed it.  I decided to forget the shower, forget going out this evening, and to just continue playing with my new toy.  

Once again the extra information you gave me has helped me get closer to what I want.

Now when someone "mistakenly" clicks on the companion button they HEAR "Sorry, there is no companion record."  The only thing that I don't like is that MPlayer is visible and you have to click the "x" to close it (of course you have to do that with the message box, as well).

But, ideally, I would like MPlayer not to be visible at all and to close by itself when the recording has played.  Any hope for that?

By the way, I did read through the new documentation on asynchshell but didn't get a clue on the "visibility" issue.

Again, thanks for ALL the help you have given me today.  I have accomplished most of what I had hoped for.
  

- Spencer

    ** Practice random kindness & senseless acts of beauty!
Back to top
IP Logged
 
SpencerWulwick
Senior Member
Members
*****
Offline



Posts: 677
Location: Wilton Manors, Florida
Joined: Jan 16th, 2005
Re: Sound file
Reply #5 - Feb 6th, 2005 at 5:52am
Print Post Print Post  
Well, for anyone interested in this "stuff," I have found that I could make a couple of modifications WITHIN MPLAYER that get me closer to my goal.

First, I changed the "skin" to what looks like an atom, so that it is much less obtrusive when it appears on the form.

Second, I was able to select OPTIONS and unchecked the box that said "Keep the Player on top of other Windows."  Now, when Mplayer appears, I can click on the "x" in the icon to close it completely or just click on any element within the form and the "atom" is placed "behind" my database form.

By the way, isn't there something I can put in programming to have Sesame automatically "focus" back to the form?

I can't believe the progress I am making with my new database ... thanks to so many of you that have been so helpful.  Thanks!

  

- Spencer

    ** Practice random kindness & senseless acts of beauty!
Back to top
IP Logged
 
Steve_in_Texas
Senior Member
*****
Offline


No personal text

Posts: 893
Location: San Antonio
Joined: Feb 21st, 2004
Re: Sound file
Reply #6 - Feb 6th, 2005 at 7:58pm
Print Post Print Post  
Glad I could be of 'some' help.

I've gotten a lot of great help here and I try to reciprocate whenever possible.

Sounds like I'll be asking YOU questions before long. Smiley

Steve
  
Back to top
IP Logged
 
Bob_Hansen
Senior Member
Members
*****
Offline


WOW, They have the Internet
on computers now!

Posts: 1861
Location: Salem, NH
Joined: Nov 24th, 2002
Re: Sound file
Reply #7 - Feb 6th, 2005 at 9:35pm
Print Post Print Post  
Want sound player to be invisible.
Another untested idea:

To minimize the sound player:
1.  Copy the exe as another name.
2.  Make PIF/shortcut file for the newly named file.  Modify it to play minimized and close when done.
3.  In Sesame, call the renamed file/pif/shortcut vs. the original filename.

---------------------------------------
Re a player file, what type of sound files are you looking at to be using?
Wav, mp3, midi, etc...............
  



Bob Hansen
Sesame Database Manager Professional
Sensible Solutions Inc.
Salem, NH
603-898-8223
Skype ID = sensiblesolutions
Back to top
IP Logged
 
Bob_Hansen
Senior Member
Members
*****
Offline


WOW, They have the Internet
on computers now!

Posts: 1861
Location: Salem, NH
Joined: Nov 24th, 2002
Re: Sound file
Reply #8 - Feb 6th, 2005 at 9:41pm
Print Post Print Post  
I provided some info on WAV files at this link: http://www.lantica.com/Forum2/cgi-bin/yabb/YaBB.pl?board=archived;action=display...
See the entry of "Mar 13th, 2004, 3:14pm "

It references a wav file player that can be downloaded
  



Bob Hansen
Sesame Database Manager Professional
Sensible Solutions Inc.
Salem, NH
603-898-8223
Skype ID = sensiblesolutions
Back to top
IP Logged