User Guide

Lua Support in Wireshark
176
11.7.3.2. register_menu(name, action, [group])
Register a menu item in one of the main menus.
11.7.3.2.1. Arguments
name The name of the menu item. The submenus are to be separated by '/'s. (string)
action The function to be called when the menu item is invoked. (function taking no
arguments and returning nothing)
group (optional) The menu group into which the menu item is to be
inserted. If omitted, defaults to MENU_STAT_GENERIC. One
of: MENU_STAT_UNSORTED (Statistics), MENU_STAT_GENERIC
(Statistics, first section), MENU_STAT_CONVERSATION (Statistics/
Conversation List), MENU_STAT_ENDPOINT (Statistics/Endpoint
List), MENU_STAT_RESPONSE (Statistics/Service Response Time),
MENU_STAT_TELEPHONY (Telephony), MENU_ANALYZE (Analyze),
MENU_ANALYZE_CONVERSATION (Analyze/Conversation Filter),
MENU_TOOLS_UNSORTED (Tools). (number)
11.7.3.3. new_dialog(title, action, ...)
Pops up a new dialog
11.7.3.3.1. Arguments
title Title of the dialog's window.
action Action to be performed when OKd.
... A series of strings to be used as labels of the dialog's fields
11.7.3.3.2. Errors
GUI not available
At least one field required
All fields must be strings
11.7.3.4. retap_packets()
Rescan all packets and just run taps - don't reconstruct the display.
11.7.3.5. copy_to_clipboard(text)
Copy a string into the clipboard
11.7.3.5.1. Arguments
text The string to be copied into the clipboard.
11.7.3.6. open_capture_file(filename, filter)
Open and display a capture file