AW EVENT BOTMENU
Minimum requirements | ||
---|---|---|
Added in version 4.1 | ||
SDK | build 53 |
AW_EVENT_BOTMENU
Description
Botmenu item was selected by a user.
Attributes
- AW_BOTMENU_FROM_NAME
- Name of the user that selected a botmenu item.
- AW_BOTMENU_FROM_SESSION
- Session of the user that selected a botmenu item.
- AW_BOTMENU_QUESTION
- Line number (in botmenu file) of the selected menu item.
- AW_BOTMENU_ANSWER
- Not used by browsers.
Usage
void handle_botmenu (void) { printf ("User %s (sess# %d) selected botmenu item %s\n", aw_string (AW_BOTMENU_FROM_NAME), aw_int (AW_BOTMENU_FROM_SESSION), aw_string (AW_BOTMENU_QUESTION)); } aw_event_set (AW_EVENT_BOTMENU, handle_botmenu);