[Imported] Close another mimic from the current mimic
>>Message imported from previous forum - Category:Scripts and Tips<< User: mchartrand, originally posted: 2018-10-25 18:41:36 Id:269 This is a re-posting from the obsoleted (October 2018) "Schneider Electric Telemetry & SCADA" forum.
**_Reg: Is there a way to close a different mimic from the current mimic? For example if you have Mimic1 and Mimic2, on Mimic2 I want to run a script that will close Mimic1? (I am also not refering to embeded mimic's hence i dont believe topmimic will work) I can find the mimic Object but it doesnt seem to accept the close Method eg:_**
_Dim Obj Set Obj = Server.FindObject("ABCD.2 Trends.Trends.Start") Obj.close()_
You're using the server-side features to manipulate client-side features, so what you're thinking with that code won't work.
There is no simple way to do this, the only way would be using the ViewX Automation interface to close the mimics via scripting. The interface isn't really documented but you will find examples on this forum on how to use it.
**_Reg: Thanks Adam, I had a play with the automation interface yesterday afternoon and that seems to work well, just seems a bit of a funny way to achieve something that should be simple. Thankyou again for your help Reg_**