Gets command line text on AutCAD LT  LTCustomizer21 for AutoCAD LT reference manual

ActiveX
    Function get_cmdline_text() As String
    Function get_cmdline_history_text([index As Integer = 0]) As String
C/C++
    int WINAPI get_cmdline_text(BSTR *cmdline_str,int max_size);
    int WINAPI get_cmdline_history_text(BSTR *history_str,int max_size,int index=0);

parameter
cmdline_str :inputted string that is displaying now on command line.
history_str :inputted string that is displaying now on command line history.
max_size : Maximum size of cmdline_str and history_str.
index : index of history that start from 0. if specified 0, it means before command line. If this value is bigger, gets older information of command line.
return value
ActiveX : information of displaying command line(get_cmdline_text()). Specified information of command line history.(get_cmdline_history_text())
C/C++ : Number of copied words. In case of 0, it means error 0 by failure of memory allocation ,etc.

Theses functions get contents of current command line or history of command line. Even if you are using AutoCAD LT command when these functions use, no problem. get_cmdline_history_text() gets contents histories of command line.( Histories can see by pushing F2 key on AutoCAD LT.) Unit of getting is by prompt of command line(example:"Command:"). Information of the history window of a command line isn't always the history of the indicated information strictly by a command line. A message is sometimes shown to a history window of a command line suddenly in the command message of AutoCAD/LT. It's a cancellation message(*Cancel*) to be frequently seen in it.

Caution
1. String that got by get_cmdline_history_text() is gotten rid of return code.
2. Though there are sometimes plural command line prompt messages in last of string that got by get_cmdline_history_text(), this causes because cancel messages were sent.