June 14, 201015 yr I need a way to attach a sound for a good or bad scan within the FMP application I am working on. The system works with a barcode scanner and I need a good scan sound and a bad scan sound but I need it to play without popping up an additional 3rd party media player of any kind. I am using standard wav files for my sounds. (Windows version solution btw) please someone aim me in the right direction toward finding the solution to this problem. :bang:
June 15, 201015 yr Author First of all I am rather disappointed that I have received no replies at all on this topic. I expected at least a couple of suggestions by now. Regardless, I have found a plugin that will do the trick for anyone else stuck with the same issue I have had with my application. I am going to go with the 24U Simple Sound plugin (developers license). It works perfectly for our needs...
July 2, 201015 yr I have exactly this problem issue, I have found that storing a sound in a container field is introducing a handshake and record locking problem, in a multi user invironment ... where speed is king - here read bar code scanning. I'm going to investigate if a cmd/ kind of line should be able to pull it off ... and issue is that the media player here should be terminated after having done the deed ... While It's easy peacy on mac os is it ... something I need to dig up somewhere. If someone should have such a commandline handy for windows would I gladly recieve suggestions possible with the caveats included. ------------------------------------------------ I struggled for some hours with VBscript, only to learn that Autoit does a much more neat job: http://www.autoitscript.com/autoit3/downloads.shtml ...I can only recommend you download the whole thing, and in the tutorial search for "Sound" ... All it then takes is download the example file and a quick poke in the OS's mediafolder, to pick one for each script you would need. I then use the compiler and send the two now exe-files to each workstations "Extentions" folder under the Filemaker installation. Finally is there just to make a relative path for the applications () Send Event steps you would need the sound snippets to be played. This will ensure that the sounds plays back via local files in a shared solution, and any sort of record locking have vanished. --sd Edited July 2, 201015 yr by Guest
July 4, 201015 yr Now after having seen how simple it is to get a grip on the system sounds under mac os ... did I then have a more dedicated way of googling myself to the correct info for this topic... Under Windows can following be parsed into the notebook and then saved as xxxx.vbs: strSoundFile = "C:WindowsMediaNotify.wav" Set objShell = CreateObject("Wscript.Shell") strCommand = "sndrec32 /play /close " & chr(34) & strSoundFile & chr(34) objShell.Run strCommand, 0, True While the similar can be done directly in the Perform Applescript box this way: do shell script "afplay /System/Library/Sounds/Submarine.aiff" What I still needs to learn is how to call it from inside filemaker and not make a file doing so - what am I missing? --sd Edited July 4, 201015 yr by Guest
July 15, 201015 yr Nothing to learn... FM simply does not allow execution of VBscript code. There are a few VBScript plugins that can help, but since the execution happens outside of FM regardless you will always see some flashing as the other app executes what you request. I've been lobbying for a long time now to make FM take Windows automation seriously and at least bring it on par with the AppleScript integration on Mac.
July 18, 201015 yr I came then to think of this: http://fmforums.com/forum/showtopic.php?tid/215621/post/new/#NEW ...the question is how well you understand the google translated japaneese - is it enough to make an example showing how the scripting I wish to perform? --sd
Create an account or sign in to comment