
// Script function: DocumentWindow commands


// 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


DocumentWindow EMWindow = GetDocumentWindow( 1 ) 
while( EMWindow.WindowIsValid( )  ) 
{
 Result( "\n #" + 1 + " : ")
 Result( "\t type = " + EMWindow.WindowGetType() )
 Result( "\t WorkSpace ID = " + EMWindow.WorkspaceFindByWindow() )
 Result( "\n #" + "Hello, GlobalSino")
 EMWindow = GetDocumentWindow( 1 ) 
 
 }

// Compare this script with the one with "break" at the "while roop" at:
// http://www.globalsino.com/EM/page2597_DocumentWindow.s

// To stop the script, please press "Ctrl + Pause/Break".
