4.1.1 Window operations

The API functions below allow the application to perform operations on windows and controls. These operations include finding a window, setting the focus on a specific control, and setting the status of a check box or radio button.

API function nameDescription
AIT_FocusWindowFinds the window, and sets the focus on it.
AIT_ExistWindowChecks whether the window exists.
AIT_MinWndMinimizes the window.
AIT_SetWndPosChanges the position of the specified window.
AIT_SetWndPosSizeChanges the position and size of the specified window.
AIT_GetWindowTextAcquires the title of the specified window.
AIT_SetActWndActivates the window.
AIT_GetCtrlTextAcquires text from the window control.
AIT_CtrlSetFocusSets the focus on the control.
AIT_SetSpinPosSets the position of the spin or slider control.
AIT_SetScrollPosSets the position of the scroll bar.
AIT_CtrlClickPerforms a mouse click on the control.
AIT_SelectMultipleListItemSelects multiple items in the list.
AIT_SelectListItemSelects an item in the list.
AIT_SelectIPAddressFieldSelects the IP address field.
AIT_SelectTextSelects the text of the control.
AIT_DefaultButtonCountAcquires the number of default buttons.
AIT_SetCheckSets the status of the radio button or check box.
AIT_CtrlItemCountAcquires the number of control items.
AIT_GetIndexTextAcquires text from the index.
AIT_CtrlItemIndexAcquires the index of the text.
AIT_GetIndexTextLenAcquires the character length for a 0-based index character string.
AIT_SetKeyStateSets the key status.
AIT_GetKeyStateAcquires the key status.
AIT_MouseClickPerforms a mouse click.
AIT_MouseUpPerforms a mouse release.
AIT_MouseDownHolds down the mouse button.
AIT_MouseMoveToMoves the mouse pointer.
AIT_MouseDragDropPerforms a mouse drag-and-drop operation.
AIT_MouseDblClkPerforms a mouse double-click.
AIT_SetComboEditSelTextSelects text in the combo box.
AIT_ComboBoxCloseUpPerforms a close-up operation on the combo box.
AIT_ComboBoxDropDownPerforms a drop-down operation on the combo box.
AIT_GetEditFirstLineIndexAcquires the index of the first line in the edit box.
AIT_GetEditCurrentLineIndexAcquires the index of the current line in the edit box.
AIT_GetCtrlTextLenAcquires the length of the control text.
AIT_GetEditTextLineLenAcquires the length of the line in the edit box.
AIT_GetDtPickerTimeAcquires the time from the date/time picker.
AIT_GetDtPickerDateAcquires the date from the date/time picker.
AIT_SetDtPickerTimeSets a time with the date/time picker.
AIT_SetDtPickerDateSets a date with the date/time picker.
AIT_GetMenuAcquires a menu handle.
AIT_GetSubMenuAcquires a sub-menu handle.
AIT_GetMenuTextAcquires a menu text.
AIT_GetMenuIndexAcquires the menu index.
AIT_MenuItemClickClicks on the specified menu item.