world.GetNotepadText
Gets the text from a notepad window
Prototype
BSTR GetNotepadText(BSTR Title);
Description
Returns the text from the specified notepad window.
If a notepad of that name does not exist an empty string is returned.
VBscript example
world.Note world.GetNotepadText("mynotes")
Jscript example
world.Note (world.GetNotepadText ("mynotes"));
PerlScript example
Note (GetNotepadText ("mynotes"));
Python example
world.Note (world.GetNotepadText ("mynotes"))
Lua example
Note (GetNotepadText ("mynotes"))
Return value
The text from the specified notepad window.
If that notepad does not exist, an empty string is returned.
Related topic
See also
| Function | Description |
|---|---|
| Activate | Activates the world window |
| ActivateNotepad | Activates a notepad window |
| AppendToNotepad | Appends text to a notepad window |
| CloseNotepad | Closes a notepad window |
| GetNotepadLength | Gets the length of the text in a notepad window |
| GetNotepadList | Gets the list of open notepads - returning their titles |
| ReplaceNotepad | Replaces text in a notepad window |
| SaveNotepad | Saves a notepad window to disk |
| SendToNotepad | Creates a notepad and sends text to it |