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

GumpAutoTextEntry

Pre-sets a text entry value that will be automatically applied to a gump containing the specified text entry field.

TextEntryID — the ID of the text entry element in the gump.

Value — the text string to fill in.

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 TextEntryID. The hook is applied to the first matching gump found.

For precise control over a specific gump, it is recommended to use NumGumpTextEntry instead, which targets a gump by its index.

Устанавливает значение текстового поля, которое будет автоматически применено к гампу, содержащему указанное текстовое поле.

TextEntryID — ID элемента текстового поля в гампе.

Value — текстовая строка для заполнения.

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

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

Pascal

procedure GumpAutoTextEntry(TextEntryID: Integer; Value: String);

Python

def GumpAutoTextEntry(TextEntryID: int, Value: str) -> None: ...

Pascal Example

begin
  GumpAutoTextEntry(3, '100');
  GumpAutoTextEntry(4, 'My item name');
  WaitGump('50');
end.

Python Example

GumpAutoTextEntry(3, '100')
GumpAutoTextEntry(4, 'My item name')
WaitGump('50')

See Also

GumpAutoCheckBox, GumpAutoRadiobutton, WaitGump, NumGumpTextEntry, GetGumpInfo