Code: Select all
---------------------------------------------------------------------------
Zeus for Windows Programmers Editor - Version 3.96k
Copyright (c) Xidicone P/L 1993-2007. All rights reserved.
---------------------------------------------------------------------------
Scripting Error :> File: E:\zfw\zScript\Macro0.js (4:20) >> zeus.MoveWordNextEx
Reason: '}' erwartet
Error parsing 'E:\zfw\zScript\Macro0.js' macro script.Macro script generated '2' Debug, Error and/or Warning message(s).
Code: Select all
function key_macro()
{
zeus.screen_update_disable
zeus.MoveWordNextEx
zeus.MarkBlockSet
zeus.MoveWordPrevious
zeus.MoveWordPrevious
zeus.MarkBlockReset
zeus.MarkDeleteEx
zeus.MoveDocumentEndEx
zeus.MoveLineDown
zeus.MoveLineHome
zeus.screen_update_enable
zeus.screen_update
}
key_macro() // run the macro
Sorry to disapoint you , still there.
But...
I added ; at each line of the 'Macro0.js'. Then I saved the macro under a different name, loaded it and it worked!
First I had set back the engine to LUA, but I rechecked with the default scripting engine set to JS. In both cases it worked. JS does not require the ; at every place, but maybe you should try to add it ? I also noticed, that there is blanks behind each line, may be, that some invisible binary data got into the way (remember, last time I tried loading the 'Macro0.js' with my file-viewer, I got the hex-display due to binary chars), which got removed by my manual edit now, when I added the semicolon. Not sure, but maybe this helps ?
Code: Select all
function key_macro()
{
zeus.screen_update_disable;
zeus.MoveWordNextEx;
zeus.MarkBlockSet;
zeus.MoveWordPrevious;
zeus.MoveWordPrevious;
zeus.MarkBlockReset;
zeus.MarkDeleteEx;
zeus.MoveDocumentEndEx;
zeus.MoveLineDown;
zeus.MoveLineHome;
zeus.screen_update_enable;
zeus.screen_update;
}
key_macro(); // run the macro