03-01-2011 11:49 AM
I'm runnning a Batchmodel, sequential mode, consisting of 4 sockets.
Currently using the testStand Simple user interface as a GUI to run my sequence file.
There is no option to tile the execution windows using the Simple user interface, and also don't want to as I have a small screen.
What I would like though is for the active execution (there are 4, as there is 4 sockets) to have focus as it is running.
Hope this makes sense 🙂
Thanks
Solved! Go to Solution.
03-01-2011 01:16 PM
Hi morngoose,
You could add the PostUIMessageEx API call with the UIMsg_OpenWindows eventCode to your test program at the point in the test where you want it to be in the front. From the help:
Thread.PostUIMessageEx ( eventCode, numericDataParam, stringDataParam, activeXDataParam, synchronous)
UIMsg_OpenWindows–(Value: 22) Post this message to the user interface to instruct it to open a file in a window. If the file or execution is already open, the application brings the file to the front. A file can be specified by a pathname in the stringDataParam parameter or by a PropertyObjectFile object in the activeXDataParam parameter. An execution can be specified by an Execution object in the activeXDataParam parameter. A list of files and/or executions can be specified by an array of references to PropertyObjectFile and Execution objects in the activeXDataParam parameter. For sequence files, the stringDataParam parameter can also contain a '|' separator followed by the name of a sequence to display. If you specify the sequence file in the activeXDataParam parameter, you can specify just the sequence name in the stringDataParam parameter.
Hope this helps.
-Jack