Home API Manuals About Forum
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

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.

Value1 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 элемента радиокнопки в гампе.

Value1 — выбрать, 0 — снять выбор.

При получении гампа Stealth перебирает все существующие гампы, а затем входящие, пока не найдёт тот, который содержит элемент с заданным RadiobuttonID. Хук применяется к первому подходящему гампу.

Для точного управления конкретным гампом рекомендуется использовать NumGumpRadiobutton, который обращается к гампу по его индексу.

Pascal

procedure GumpAutoRadiobutton(RadiobuttonID: Integer; Value: Integer);

Python

def GumpAutoRadiobutton(RadiobuttonID: int, Value: int) -> None: ...

Pascal Example

begin
  GumpAutoRadiobutton(10, 1);
  WaitGump('200');
end.

Python Example

GumpAutoRadiobutton(10, 1)
WaitGump('200')

See Also

GumpAutoCheckBox, GumpAutoTextEntry, WaitGump, NumGumpRadiobutton, GetGumpInfo