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

LastJournalMessage

Returns the text of the most recent (newest) journal entry.

After the call, the Line* properties are updated with data from the last journal entry.

Returns an empty string if the journal is empty.

Возвращает текст последней (самой новой) записи журнала.

После вызова свойства Line* обновляются данными из последней записи журнала.

Возвращает пустую строку, если журнал пуст.

Pascal

function LastJournalMessage: String;

Python

def LastJournalMessage() -> str: ...

Pascal Example

begin
  UOSay('hello');
  Wait(1000);
  AddToSystemJournal('Last message: ' + LastJournalMessage);
  AddToSystemJournal('From: ' + LineName);
end.

Python Example

UOSay('hello')
Wait(1000)
AddToSystemJournal(f'Last message: {LastJournalMessage()}')
AddToSystemJournal(f'From: {LineName()}')

See Also

Journal, HighJournal, InJournal, LineName, LineTime