Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
mudlet:chat_capture_window [2022/07/18 23:43] – [Create a Window Script] bebopmudlet:chat_capture_window [2023/11/05 22:08] (current) – [Advanced: Adding Timestamps] math
Line 48: Line 48:
   - Click save item.   - Click save item.
   - You may need to reconnect to the MUD to get the window to appear.    - You may need to reconnect to the MUD to get the window to appear. 
 +
 +===== Advanced: Adding Timestamps =====
 +
 +To add timestamps to your chat capture window, replace
 +<code>
 +copy()
 +chat_window:appendBuffer()
 +</code>
 +in the previous examples with
 +<code>
 +echo("chat_window", string.format("%s: %s\n", getTime(true), getSelection()))
 +</code>
 +Check the Mudlet Lua documentation to see more formatting options for getTime().
  
 ===== Capture Additional Channels ===== ===== Capture Additional Channels =====