I would do both - the count down and the sound - in a web viewer.
Hi Mr. Horak, thanks for the quick reply.
I did actually try that but ran into problems referring to the sound, that is, I couldn't figure out the correct address (file:// etc). But how would you hide the countdown in the web viewer, can you call a FM script to be played in the viewer?
Hi, thanks again Mr. Horak,
I found nothing useful when I searced the fmdev earlier but this reference from FM forum sounds promising.
I'll take a look and see if I understand it :-).
Hi again Mr. Horak,
This egg timer solution is nifty, the creator inserts a Let calculation into the set web viewer address field, that among other things calls a java sniplet that formats what appears in the viewer. For me, Java is still just coffee but I might plough through this to adjust it to my needs. Is there a java command that calls a waw sound file, that I could insert into the sniplet somehow?
Alternatively, a simpler solution, FM native, would suit my abilities better :-).
Best regards and thanks,
IIUC, your sound is being played by Windows, so it would probably require a Windows command to close the player?
Switching to another layout, as you found, is not very elegant. Here's what I did:
Rather than using a separate layout, I placed the container on the current layout, hidden behimd something as a 1px by 1px size. I don't recall why I had to do this, but there must have been a reason, as I never, ever am one to place hidden fields on a layout...yet i did in this case.
And then your script:
// Open new window off-screen
New Window [Width:150; Height:150; Left:0; Right:-150]
Go to Field [Container; Perform/Select]
Commit Record [Skip Validation]
FWIW, this is what worked for my particular situation using FM11. I found that it worked differently on different versions of Windows, in different versions of FileMaker, and between kiosk and non-kiosk modes. YMMV.