version 1.3, 2010/01/21 07:16:44 |
version 1.5, 2013/08/07 01:53:40 |
Line 224 void CWinfepDlg::OnSend() |
|
Line 224 void CWinfepDlg::OnSend() |
|
for ( i = 0; line[i] && isspace(line[i]); i++ ); |
for ( i = 0; line[i] && isspace(line[i]); i++ ); |
if ( line[i] && |
if ( line[i] && |
!strncmp(line+i,"end$",4) || !strncmp(line+i,"end;",4) ) return; |
!strncmp(line+i,"end$",4) || !strncmp(line+i,"end;",4) ) return; |
for ( i = 0; line[i]; i++ ) { |
|
if ( line[i] == '\t' ) |
// for ( i = 0; line[i]; i++ ) { |
::SendMessage(asirhwnd,WM_CHAR,' ',8); |
// if ( line[i] == '\t' ) |
else |
// ::SendMessage(asirhwnd,WM_CHAR,' ',8); |
::SendMessage(asirhwnd,WM_CHAR,line[i],1); |
// else |
|
// ::SendMessage(asirhwnd,WM_CHAR,line[i],1); |
|
// } |
|
// ::SendMessage(asirhwnd,WM_CHAR,'\n',1); |
|
if ( line[i] ) { |
|
#if 0 |
|
m_currentline.SetSel(0,str.GetLength()); |
|
m_currentline.Copy(); |
|
#else |
|
int len=str.GetLength()+1; |
|
if (!::OpenClipboard(NULL) ) return; |
|
HGLOBAL hMem = ::GlobalAlloc(GMEM_FIXED,len); |
|
LPTSTR pMem = (LPTSTR)hMem; |
|
::lstrcpy(pMem,(LPCTSTR)line); |
|
::EmptyClipboard(); |
|
::SetClipboardData(CF_TEXT,hMem); |
|
::CloseClipboard(); |
|
#endif |
|
::SendMessage(asirhwnd,WM_CHAR,0x19,1); |
} |
} |
::SendMessage(asirhwnd,WM_CHAR,'\n',1); |
::SendMessage(asirhwnd,WM_CHAR,'\n',1); |
show_line(++currentline); |
show_line(++currentline); |
Line 288 void CWinfepDlg::OnAsir() |
|
Line 306 void CWinfepDlg::OnAsir() |
|
CFileDialog fileDialog(TRUE); |
CFileDialog fileDialog(TRUE); |
if ( fileDialog.DoModal() == IDOK ) { |
if ( fileDialog.DoModal() == IDOK ) { |
CString pathName = fileDialog.GetPathName(); |
CString pathName = fileDialog.GetPathName(); |
_spawnl(_P_NOWAIT,pathName,pathName,NULL); |
_spawnl(_P_NOWAIT,pathName,"asirgui",NULL); |
Sleep(5000); |
Sleep(5000); |
get_asirhwnd(); |
get_asirhwnd(); |
} |
} |