binaryninja.interaction.get_choice_input¶
-
get_choice_input
(prompt, title, choices)[source]¶ get_choice_input
prompts the user to select the one of the provided choices.- Note: This API function differently on the command-line vs the UI. In the UI a pop-up is used. On the command-line
- a simple text prompt is used. The UI uses a combo box.
Parameters: Return type: integer array index of the selected option
Example: >>> get_choice_input("PROMPT>", "choices", ["Yes", "No", "Maybe"]) choices 1) Yes 2) No 3) Maybe PROMPT> 1 0L