Automate

 View Only
  • 1.  How to tell when StudioMacros COM Object is finished running

    Posted 08-21-2019 09:52
    I'm using VBA to execute a Winshuttle Transaction (v11.4) Script using the StudioMacros COM Object, and I was wondering if there is a parameter that can be monitored to know when Winshuttle is finished executing?

    Right now I am clearing the Log Column before executing, and then waiting for Winshuttle to update the Log Message Header before running my the rest of my custom code, but I would prefer a systematic way that could not be manipulated by the user or fail if the script processes is ended before it writes the log.

    If that is not possible, can the Processes ID be captured with the StudioMacros.RunScript command so that I can use WMI to monitor the process to know when it is complete?

    ------------------------------
    Scott Bohenstengel | Project Analyst - PDM
    Kohler Company | 920-457-4441
    ------------------------------


  • 2.  RE: How to tell when StudioMacros COM Object is finished running

    Posted 08-27-2019 07:46
    I haven't tried using the com object.  

    To get to the same place I run the script from via a command line instruction in a batch file. 


    ------------------------------
    Daniel Lozanski | BT AM BA LOG
    Siemens Building Technologies, Inc. |
    ------------------------------