July 22, 200322 yr 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!
July 22, 200322 yr 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
August 3, 200322 yr 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.
August 3, 200322 yr 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 . You can email me at [email protected]
Create an account or sign in to comment