Home > Language Reference > Windows Management Functions > WriteCombo

WriteCombo

The WriteCombo function sends the specified keystrokes to the specified combobox.

Usage

Used to simulate keystrokes being typed into a combobox.  

Syntax

ret=WriteCombo(<combo_identifier>, <text>)

Parameters

<combo_identifier>, string, identifier of the combobox. Use Recording mode to generate automatically the WriteCombo statement.

<text>, string, text to type into the combobox.

Return value

ret, optional numeric return value. If the function succeeds, the return value is 0. If the function fails, the return value is a nonzero value (see Window Functions Error Codes).

See also

SendKeys

Example

Shell("notepad",1)
UseWindow("NOTEPAD.EXE|Notepad|Untitled - Notepad",1)
 ChooseMenu(Normal,"F&ormat|&Font...")
'Type Arial in the first combo of the Font dialog box
UseWindow("NOTEPAD.EXE|#32770|Font",1)
 WriteCombo("1","Arial")