Does anyone have any experience working with .NET UI Automation with CorelDRAW? I just found out about this and I think this can be alternative to conventional SendKeys method, isn't it?
Here's the overview: https://docs.microsoft.com/en-us/dotnet/framework/ui-automation/ui-automation-overview
My goal is automate a Save As dialog (by accessing File > Save As > then inputting file name to the field). Reason I'm taking this way because I found the built in API's Save function is single threaded...
What is your real need?
Automation means accessing the COM application from another application. For instance to run Corel.Application commands from Excel (VBA), VBScript, VB.NET, VBScript and so on.
Can you better describe what you are intend to do?
So I'm building a customized Save As dialogue for our file management system (basically it's a macro to save the CDR file to certain directory structure).
My project hit a roadblock when I found built in Save method is single threaded (as I mentioned in other topic), so saving a big file takes a long time and renders the whole software unusable.
To workaround this I'm thinking I could automate the Save As dialogue instead, so when my macro save the document it instead open a Save As dialogue with preset location and filename, just so it will be able to save in background.
I know it's kind of counter intuitive but Corel doesn't give me much option here
© Corel Corporation. The content herein is in the form of a personal web log ("Blog") or forum posting. As such, the views expressed in this site are those of the participants and do not necessarily reflect the views of Corel Corporation, or its affiliates and their respective officers, directors, employees and agents. Terms and Conditions / User Guidelines.