void XDLink::Send ( const JCharacter* text ) { if (itsLink != NULL) { if (ProgramIsRunning()) { StopProgram(); } JString arg = " -i not_command"; JString s = text; JIndex i; if (s.LocateSubstring("@i", &i)) { s.ReplaceSubstring(i, i+1, arg); } else { s += arg; } SendRaw(s); } }
void CMainFrame::OnStopProgram() { StopProgram(); }