Example: ctrx_disconnect_server

In the following example, after connecting to the server ludens and opening Microsoft's Internet Explorer application, the function ctrx_disconnect_server disconnects from the server.

Actions () {

     ctrx_connect_server("ludens", "test", "test", "ludens");
     ctrx_wait_for_event("LOGON");

     /* Launch the web browser by clicking on desktop IE icon */
     ctrx_mouse_double_click(34, 325, LEFT_BUTTON, 0, NULL);
     lr_think_time(13);
     ctrx_set_window("Welcome to MSN.com - Microsoft Internet Explorer");

     /* Exit the web browser by clicking on top left Exit check box */
     ctrx_mouse_click(573, 61, LEFT_BUTTON, 0,
               "Welcome to MSN.com - Microsoft Internet Explorer");
     lr_think_time(12);
     ctrx_disconnect_server("ludens");

     return 0;
}