Jump to content

This topic is 7989 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Hi Geeks

I want to install a quicktime file (sound) within a script. I checked some posts and one of them tells to create a container field, use "Go to field" and check "Select/Perform". I did that but it doesn't seem to work. I guess the problem is related to the field itself. After creating the container field, what are the next steps? How do I connect, paste the sound file to it?

Bikeman 17

Posted

Insert it either by copy and paste, or using the insert sound - Menu - Insert - Sound

Lee

wink.gif

Posted

Lee,

I tried both and no result. See what I've done. I clicked on right mouse button and select "Insert QuickTime...". The container field looks like a quicktime file.

Now the script,

....

If Status (....) = 0

Show Message (....)

Go to Field (Select/Perform, "X")

Else

....

The sound doesn't play.

Bikeman17

Posted

I'm unclear as to how this file exist on your machine and what you are expecting to play if the file doesn't exist in your file. The insert and paste both are done from in Browse Mode? What OS and version of FM are you using?

Lee

Posted

Lee,

Actually, I operate a Windows XP and an iMac G4 (OS 9 & X) with FM 6. But I tried to implement the sound using XP. The file name is warning.wav. It plays on both computers.

From the menu bar, I clicked on Insert/QuickTime. A window displays. I double-clicked on the warning.wav file. Like I said, the container field looks like a quicktime player.

Bikeman17

Posted

I just wrote a simple script to make sure that the action that plays the sound works. It did right. So here is the full script where the sound should be played.

Set Error Capture (On)

Go to Field ("Member ID"

Enter Find Mode (Pause)

Perform Find (Replace Found Set)

If (Status(CurrentFoundCount) = 0

Show Message (...)

Enter Browse Mode

Go to Field (Select,Perform, "Warning")

Else

...

End If

Go to Layout (Check-in)

Show all records

Perform Script (Sub-script, "Sort ID")

Go to Record/Request/Page(first)

Have you tried it?

Bikeman17

Posted

I found what happened!!!! The container field for each record must have a Quicktime file in order to play the sound. When the script is performed, it enters a search mode. If the record has no quicktime file, it won't play the sound.

Many thanks to all of you. In a sens, you triggered my thoughts. I found a way to avoid entering the warning sound into each record.

Bikeman17

This topic is 7989 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.