Hi,
I’m trying to effectively write a plugin (using .Net) for my own workflow so that I can automatically load selected images into Photo AI and start their pre-processing in the background.
The problem I have is sending the filename to Photo AI and getting it to load. Because Photo AI is written in QT I can’t use .Net’s “SendKeys” and automate the file open dialog, or send a “file drop” Windows message.
The following partially works (it effectively does the equivalent of typing “Topaz Photo AI.exe ” into a command prompt) :
Shell(“”“C:\Program Files\Topaz Labs LLC\Topaz Photo AI\Topaz Photo AI.exe”" “”" & JPGFile.FullName & “”“”, AppWinStyle.MaximizedFocus)
It will load, however if there is an existing instance of Topaz running it ignores it and starts another, and eventually my system crashes. What I want to do is load new images into the running instance, equivalent to manually dropping multiple images.
Does anyone have any sample C# or VB.Net code for such a plugin which works?
Thanks
Andrew