graphics builder 5.0
Voted best answer
Hello,
is it the only overlapped window you have at that moment ?
If so you can use the verb under Workplace structure, Web System Workplace - Close_All_Overlaps (which is implemented in Global Verbs, a Scripting Aspect).
/Ronny
Answers
I was told that PG2 has no features to close a display by its own.
One possible way would be to create a Simple Scripting aspect and write Aspect Automation script code which detects & closes the window. Then expose the code as a verb and call the verb from a pushbutton in PG2.
However, I can not deliver any examples of this code.
Note: calling such a verb from a base display might close the workplace instead of just one overlap.
You can use autoit to do this https://www.autoitscript.com/site/autoit/ call the autoit script from a windows application aspect. I would use the portable version of autoit so you don't have to install it an compile the autoit sript into an exe file.
I've used it to make a digital print screen for 800xA (the operators presses a button and the current screen is saved to a file server in jpg format, all controlled by an autoit script)
Add new comment