How to close OMI client from script?

I want to make a buttom where the client can be closed. Is there a command for that?

Parents
  • Hi Kristen,

    In InTouch you could use the wwcontrol command or sendkeys in a animation.

    But they do not seem to work if placed in a symbol and used in OMI.

    A way that I did is to create a Attribute in your ViewAppNamespace

    Then set your layout up with a script capturing this and execute the sendkeys command.

    'Close OMI
    SendKeys("%{F4}");
    MyViewApp.ViewAppNamespace.CloseOMI = false;
    LogMessage("Close OMI initiated by user...");

    Then you can trigger the Attribute from graphics animation

    Perhaps there is a alternative way, but I was unable to find anything related to this in the documentation.

    Using the sendkeys command (alt+f4) will not work if you have disabled the alt key to lock down your application.

    Let me know if this works for you.

Reply
  • Hi Kristen,

    In InTouch you could use the wwcontrol command or sendkeys in a animation.

    But they do not seem to work if placed in a symbol and used in OMI.

    A way that I did is to create a Attribute in your ViewAppNamespace

    Then set your layout up with a script capturing this and execute the sendkeys command.

    'Close OMI
    SendKeys("%{F4}");
    MyViewApp.ViewAppNamespace.CloseOMI = false;
    LogMessage("Close OMI initiated by user...");

    Then you can trigger the Attribute from graphics animation

    Perhaps there is a alternative way, but I was unable to find anything related to this in the documentation.

    Using the sendkeys command (alt+f4) will not work if you have disabled the alt key to lock down your application.

    Let me know if this works for you.

Children
No Data