Start an external executable
DigitalMicrograph Script
Mini-example of how the command LaunchExternalProcess() is used. This command can execute any external application. It provides a powerful method to access hardware outside the DigitalMicrograph environment from within DigitalMicrograph.
Preview
String callString = "calc.exe" // This assume the executable is available on the system path if ( TwoButtonDialog( "Launch Windows Calculator", "Asynchronous", "Synchronous" ) ) LaunchExternalProcessAsync( callString ) else LaunchExternalProcess( callString ) OKDialog( "The DM script continues" )