I have this old Fortran executable that can only be accessed through its GUI, and is too complicated to rewrite. I need to integrate it into a tool we are building, so I wrote a GUI wrapper in C# using the White library (certainly not ideal, but I couldn't think of a better approach). This works ok, but when my program runs, the GUI pops up, and certain actions (such as listbox selections) force a mouse movement. I'd like the interaction with the Fortran tool to be transparent to the user.
I've read a couple posts here about a CreateDesktop function in the user32 dll that may allow me to execute the wrapper on another desktop window not seen by the user. Will I still be able to automate GUI interaction on such a desktop? I've searched around, haven't found any examples of how to use a desktop created this way. Does anyone have a good reference for this?
Alternatively, is there a better way to go about this process?