alireza_74 / Publications
Forum
Calls to TerminalInfoInteger(TERMINAL_KEYSTATE_XXX) always return 0 for undocked charts.
void OnChartEvent ( const int id, const long & lparam, const double & dparam, const string & sparam) { if (id == CHARTEVENT_KEYDOWN ) { Print ( TerminalInfoInteger ( TERMINAL_KEYSTATE_CONTROL )); } } On a key down event, it will print the states of the Ctrl key. It