Gets the plain text content of a rich text box control.
Takes richTextBoxID (Int).
Returns empty string if zero.
BGI GUI
Parameters & Returns
Parameters
richTextBoxIDInt
Returns
String
Quick Summary
Gets the plain text content of a rich text box control.
Takes richTextBoxID (Int).
Returns empty string if zero.
Technical Exegesis...
Retrieves the entire text content of a rich text box as a plain string (without formatting). Searches gizmoMap for the rich text box ID. Gets text length with GetWindowTextLengthW, returns empty string if zero. Allocates wide character buffer, retrieves text with GetWindowTextW. Converts wide string to UTF-8 using WideCharToMultiByte with CP_UTF8. Stores result in static buffer (max 65536 bytes). Returns UTF-8 string on success, empty string if rich text box not found.
Retrieves the entire text content of a rich text box as a plain string (without formatting). Searches gizmoMap for the rich text box ID. Gets text length with GetWindowTextLengthW, returns empty string if zero. Allocates wide character buffer, retrieves text with GetWindowTextW. Converts wide string to UTF-8 using WideCharToMultiByte with CP_UTF8. Stores result in static buffer (max 65536 bytes). Returns UTF-8 string on success, empty string if rich text box not found.
This function retrieves plain text only - all rich text formatting (bold, italic, colors, fonts) is stripped from the returned string. Use for text-only operations like search, validation, or saving to plain text files. Result is limited to 65536 bytes in UTF-8 encoding. For very large texts exceeding this limit, text will be truncated. Supports UTF-8 encoding preserving international characters.