DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot change application window state reliably while script is running

When running a VBS script that takes a while to run I output status to the logfilewrite output.  But the DIAdem application will not be brought to the foreground of windows so I cannot see the output by clicking on it.  I can hover over the taskbar and get a preview and then hover over the preview and the screen will show the application but if I click on the preview or anywhere else the screen hides again.  

 

Sometimes it seems the application will get the thread and register changes but not sure when this happens in the script and it is infrequent.  Is there a way to make sure that the DIAdem application will respond normally to Minimize, Maximize, restore while an extended script is running?

 

 

 

 

0 Kudos
Message 1 of 2
(1,288 Views)

Hi az_Itr,

 

First of all, the DIAdem log file is just an ASCII file, so you can view it with Notepad++ or UltraEdit or whatever your favorite ASCII file viewer application is.

 

But it sounds like your use case might benefit from a more high tech tool.  You can use the following command in addition to or instead of the LogFileWrite(OutputText), and any time you do the results can be viewed in the dedicated DebugView tool:

 

Call DBM(OutputText)

 

Brad Turpin

Principal Technical Support Engineer

NI

0 Kudos
Message 2 of 2
(1,213 Views)