Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Capture image using webcam and put it in a Container Field

Featured Replies

I was just wondering if there is a way to set my image container field to launch the webcam on my PC and capture the image (take photo) instead of manually inserting a photo? If there is a way to do this I would appreciate it if you could tell me or point me to where I can find the solution for it.

Much appreciated.

Using Filemaker Pro 18 on Windows 10 Pro

Hey there! Yes, this is definitely possible. 

I use a utility called CommandCam (https://batchloaf.wordpress.com/commandcam/) to capture an image from a connected webcam. 

I have used it with a few different webcams, external USB and built-in to laptop without any issues. 

 

The documentation is great, and you should be able to get things up and going fairly easily. 

 

I use it in combination with ImageMagick, so that I can take a photo, process it (crop and resize), then import to FM. 

 

The process isn't perfect, but here's what I found works:

 

In the FM capture script:

-Call a batch script (.bat file) using the Send Event script step.

-The batch file goes to the directory where the CommandCam utility is stored, runs it with the specific switches (e.g. silent, and the desired filepath). I do my ImageMagick processing and output the file. I use 'timeout' in the batch file for 10 seconds, then delete my temporary photo files, and exit the batch file

-After the Send Event script step, pause the FM script for 5 seconds, to allow the batch file to run

-Resume the FM script

-Insert image (store in your container) - I build in logic for error checking (e.g. if photo doesn't exist)

By the time your FM script has finished, the 10 second timeout in the batch file has completed, and the batch file exits. 

 

Hopefully this makes sense... I'm on mobile, but can upload some screenshots/demo files if you'd like. 

  • Author

Thanx Matt for the steps provided. If it works, then that's great!! I will definitely try it.

In the meantime Im still looking for alternatives. I was hoping for a faster/easier step that doesn't rely on other external utilities/software or timings... maybe a filemaker plugin?

  • 2 weeks later...

Webcam.js doesn't work, even when loaded with SSL/https...

"Webcam.js Error: No supported webcam interface found."

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.