请问怎么用python脚本来关闭一个session?

12 views
Skip to first unread message

pkucannot

unread,
Jul 8, 2009, 7:00:16 AM7/8/09
to CTerm

就是标签右键菜单中的"直接关闭"功能,怎么用python脚本实现?
我尝试用SendString(CTermID, '\x061')的发送字符串,结果没有反应。
请问该怎么做啊?有没有CloseSession(CTermID)之类的函数可以调用?

nullspace

unread,
Jul 11, 2009, 2:08:04 AM7/11/09
to CTerm
试试
SendCommand(ID_SWITCH_VIEW_FIRST+1)
SendCommand(ID_FILE_CLOSE)

pkucannot

unread,
Jul 11, 2009, 5:35:47 AM7/11/09
to CTerm
SendCommand(ID_FILE_CLOSE)成功~~

多谢

> > 请问该怎么做啊?有没有CloseSession(CTermID)之类的函数可以调用?- Hide quoted text -
>
> - Show quoted text -

Reply all
Reply to author
Forward
0 new messages