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
Last revisionBoth sides next revision
mudlet:chat_capture_window [2021/07/13 23:54] paradoxmudlet:chat_capture_window [2023/11/05 22:08] – [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 =====
Line 55: Line 69:
  
 Here's an example of adding additional styling to the chat capture window. Here's an example of adding additional styling to the chat capture window.
 +
 +**NOTE: Requires Mudlet 4.10+ and Linux - will not work on older Mudlet or MacOS/Windows**
  
   - Open the "scripts" page again by clicking the button in the toolbar.   - Open the "scripts" page again by clicking the button in the toolbar.