// Script function: Use CTRL key to continue. The lines below can be inserted into any processing step of your scripts to act as Pause and De-Pause with CTRL key press.


// Unless named starting with GlobalSino, EM, My, Self, the function commands are defined 
//by Gatan DM, please see at link: http://www.globalsino.com/EM/page2597.html


While ( !ControlDown())
{
OpenAndSetProgressWindow("Press CTRL key to continue...","","") // After executing the script, watch the line at the bottom of DM window.
}
CloseProgressWindow()