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.

Win32 COM send message to FMP - sample code?

Featured Replies

  • Newbies

Hi,

I need to create a Win32 plugin for FMP that will send a message to FMP to execute a particular script in the current database. Just like the doscript plug-in. Unfortunately, we can't use doscript (or any other off-the-shelf script), because we'll be redistributing this solution and we can't afford any of those plug-ins.

I've already implemented this plug-in for the Mac side using AppleScript to send a message to FMP (works great), but I don't have as much Win32 programming experience. I've figured out enough to get a skeleton Win32 plug-in working (FMP calls the plug-in to do its thing at the right moment), but I don't know how to have the plug-in instruct FMP to execute a script.

I've been searching like crazy for COM samples using C or C++ which will show me how to do Windows messaging.

Anybody got any help or pointers?

Thanks!

Have you looked at WinBatch? You could create a distributable .exe at no cost, but you would have to buy the complier version (around $400). Also, you'd have a different solution that what would exist on the Mac (but you already have that. WinBatch can do a whole lot more than what Applescript can do, is easy to work with and debug, and adds a Swiss-Army knife capability to FM. See it at www.wilsonware.com

Steve

  • 2 weeks later...

You dont need to do any windows messaging to do this. Look on the MSDN for the CreateDispatch method. This is what I did to reproduce the functionality of the do script plugin on windows. I did in all in pure COM so its pretty ugly code. Good luck with this.

Btw I can give you a copy of my do script plugin if you want. You can do what you want with it, totally free and distribute it with your software. It has a flaw in it though that it will only work on the active filemaker file, but its pretty easy to get around any problems that might cause. Source code is mine though wink.gif.

You can email me at [email protected]

Create an account or sign in to comment

Important Information

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

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.