Показать сообщение отдельно
Старый 28.08.2009, 15:48   #20  
Denicce is offline
Denicce
Участник
 
62 / 54 (2) ++++
Регистрация: 22.03.2005
Адрес: Москва
самому надоело лишние клавиши нажимать, поэтому написал сие:
\Classes\EditorScripts\getApplicableScripts
X++:
// Use this method to control what scripts are shown on the scripts popup menu in the editor
container getApplicableScripts(Editor e)
{
    classId id = classnum(EditorScripts);
    TreeNode AOTNode = EditorScripts::getVersionControllableNode(e);
    DictClass dc = new DictClass(id);
    int i;
    container scripts;
    str methodName;

// ADD by KDV ==>
void pressKeyS()
{
    DLL winApiDLL = new DLL('User32');
    DLLFunction keybd_event = new DLLFunction(winApiDLL, 'keybd_event');
    ;
    keybd_event.arg(ExtTypes::Byte, ExtTypes::Byte, ExtTypes::DWord, ExtTypes::DWord);
    keybd_event.call(83, 0, 0, 0);
}
// ADD by KDV <==
...
...
    pressKeyS();  // ADD by KDV
    return scripts;
}