GumpAutoRadiobutton
Pre-sets a radio button value that will be automatically applied to a gump containing the specified radio button.
RadiobuttonID — the ID of the radio button element in the gump.
Value — 1 to select, 0 to deselect.
When a gump is received, Stealth iterates through all currently existing gumps and then any incoming gumps, looking for one that contains the element with the given RadiobuttonID. The hook is applied to the first matching gump found.
For precise control over a specific gump, it is recommended to use NumGumpRadiobutton instead, which targets a gump by its index.
Устанавливает значение радиокнопки, которое будет автоматически применено к гампу, содержащему указанную радиокнопку.
RadiobuttonID — ID элемента радиокнопки в гампе.
Value — 1 — выбрать, 0 — снять выбор.
При получении гампа Stealth перебирает все существующие гампы, а затем входящие, пока не найдёт тот, который содержит элемент с заданным RadiobuttonID. Хук применяется к первому подходящему гампу.
Для точного управления конкретным гампом рекомендуется использовать NumGumpRadiobutton, который обращается к гампу по его индексу.
procedure GumpAutoRadiobutton(RadiobuttonID: Integer; Value: Integer);
def GumpAutoRadiobutton(RadiobuttonID: int, Value: int) -> None: ...
begin
GumpAutoRadiobutton(10, 1);
WaitGump('200');
end.
GumpAutoRadiobutton(10, 1)
WaitGump('200')
GumpAutoCheckBox, GumpAutoTextEntry, WaitGump, NumGumpRadiobutton, GetGumpInfo