Author Topic: How to automatically launch an app when IMatch database open or close  (Read 89 times)

JoseGil

  • New Members
  • *
  • Posts: 6
Hello

I have an application that monitors in IMWS for changes in file categories. In case of detecting changes, a category called 'Pending_publication' for that file is marked.

I also have a second application that exports all the images with the category 'Pending_publication' active.

I would lile that, when opening the IMatch database, the first application was launched and that when the database was closed the second application was also launched

With older versions of IMatch this was done using VBA procedures Database_Open() and Database_Close(). I have read here that this is no longer possible.

And this is my question, is there any automatic way to launch these applications when starting and closing the IMatch database or the only way to do it is to launch them manually?

Thanks in advance

José
« Last Edit: August 14, 2019, 01:01:15 PM by JoseGil »

Mario

  • IMatch Developer
  • Administrator
  • *****
  • Posts: 22591
Re: How to automatically launch an app when IMatch database open or close
« Reply #1 on: August 14, 2019, 02:26:49 PM »
Maybe a service app is what you need:
https://www.photools.com/dev-center/doc/imatch/
What the IMatch/IMWS sockets and react on events as needed.

Or write some external app in .NET, Python, Java or whatever which monitors IMWS directly.

JoseGil

  • New Members
  • *
  • Posts: 6
Re: How to automatically launch an app when IMatch database open or close
« Reply #2 on: August 21, 2019, 09:26:18 AM »
Thanks Mario

A service app is what I was looking for:

"Service apps run in the background and don't provide a user interface. IMatch starts them automatically during the startup process and terminates them during shut-down."

The service app example included in C:\ProgramData\photools.com\IMatch6\webroot\imatch\samples\service-app\ has been very useful

Thanks, again