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

BookSetHeader

Sets the title and author of the currently open book.

The book must be opened beforehand (e.g. via UseObject or UseType). If no book is open, the method logs a warning and does nothing. If the book is read-only, the method also logs a warning and does nothing.

Устанавливает заголовок и автора текущей открытой книги.

Книга должна быть предварительно открыта (например, через UseObject или UseType). Если книга не открыта, метод выводит предупреждение и ничего не делает. Если книга доступна только для чтения, метод также выводит предупреждение и ничего не делает.

Pascal

procedure BookSetHeader(Title: String; Author: String);

Parameters:

  • Title — book title.
  • Author — book author name.

Python

def BookSetHeader(Title: str, Author: str) -> None: ...

Pascal Example

begin
  UseObject(FindItem);
  Wait(1000);
  BookSetHeader('Traveler''s Journal', CharName);
  BookClearText;
  BookSetText('Day 1. Arrived at Britain.');
end.

Python Example

UseObject(FindItem())
Wait(1000)
BookSetHeader("Traveler's Journal", CharName())
BookClearText()
BookSetText('Day 1. Arrived at Britain.')

See Also

BookSetText, BookSetPageText, BookClearText, BookGetPageText