ConsoleEntryReply
Sends a reply to a console entry prompt from the UO server. Console entries are used for text input in the client, such as rune renaming.
This method handles both ANSI and Unicode variants of the console entry prompt. ConsoleEntryUnicodeReply is a synonym for this method.
If a console entry prompt has already been received from the server, this method immediately sends the reply. If not yet received, a hook is installed and the reply is sent automatically when the prompt arrives.
If you’re not sure whether ConsoleEntry or ConsoleEntryUnicode is coming from the server, check the journal — a message about the console entry type will be printed there.
Отправляет ответ на запрос консольного ввода от сервера UO. Консольный ввод используется для текстового ввода в клиенте, например для переименования рун.
Метод обрабатывает оба варианта запроса: ANSI и Unicode. ConsoleEntryUnicodeReply — синоним этого метода.
Если запрос консольного ввода уже получен от сервера, метод немедленно отправляет ответ. Если ещё не получен — устанавливается хук, и ответ отправляется автоматически при получении запроса.
Если не уверены, какой тип запроса приходит от сервера, проверьте журнал — там будет сообщение о типе.
procedure ConsoleEntryReply(Text: String);
Parameters:
- Text — reply text to send.
def ConsoleEntryReply(Text: str) -> None: ...
begin
// Rename a rune via context menu
RequestContextMenu(rune_id);
SetContextMenuHook(rune_id, 0);
Wait(300);
ConsoleEntryReply('Britain Bank');
Wait(300);
end.
RequestContextMenu(rune_id)
SetContextMenuHook(rune_id, 0)
Wait(300)
ConsoleEntryReply('Britain Bank')
Wait(300)