Example: ctrx_list_select_item

In this example, ctrx_list_select_item selects a font in the Notepad application.

ctrx_sync_on_window( "Untitled - Notepad",
    ACTIVATE, -4, -4, 809, 609, "snapshot1", CTRX_LAST );

ctrx_obj_mouse_click("<text=OK class=Button>", 
    394, 376, LEFT_BUTTON, 0, "Untitled - Notepad=snapshot2",
    CTRX_LAST );

ctrx_obj_mouse_click("<text=Untitled - Notepad class=Notepad>",
    80, 32, LEFT_BUTTON, 0, "Untitled - Notepad=snapshot3", 
    CTRX_LAST );

ctrx_sync_on_window("58_37_100_41", CREATE, 58, 37, 100, 41, 
    "snapshot4", CTRX_LAST );

ctrx_obj_mouse_click("<class=#32768>", 93, 66, LEFT_BUTTON, 0, 
    "Untitled - Notepad=snapshot5", CTRX_LAST );

ctrx_sync_on_window( "Font", ACTIVATE, 20, 126, 438, 345, 
    "snapshot6", CTRX_LAST );

ctrx_obj_mouse_click("<text=Times New Roman class=Edit>",
    124, 58, LEFT_BUTTON, 0, "Font=snapshot7", CTRX_LAST );

ctrx_list_select_item( "Font", 124, 58, "Arial Black", CTRX_LAST );
ctrx_key( "ENTER_KEY", 0 );
ctrx_sync_on_window( "Untitled - Notepad", ACTIVATE, -4, -4, 809, 609, "snapshot8", CTRX_LAST );
ctrx_type( "Test" );