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 [2021/07/14 00:04] paradoxmudlet:chat_capture_window [2023/11/05 22:08] (current) – [Advanced: Adding Timestamps] math
Line 19: Line 19:
     height = "5c",     height = "5c",
     dockPosition = "top",     dockPosition = "top",
 +    autoWrap = true,
   })   })
   chat_window:setFontSize(getFontSize())   chat_window:setFontSize(getFontSize())
Line 47: 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 =====