Цитата:
Сообщение от
belugin
самому надоело лишние клавиши нажимать, поэтому написал сие:
\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;
}