Macro exec w F8 repeat /enter rep count aborts unexpectedly
Posted: Wed Jul 02, 2008 10:53 am
When running a very simple macro over say 100 or so lines of a source file, to do a very simple reformatting and data entry, I have repeatedly made these fail when I press F8 too many times repeatedly, or if I enter a playback count #. Zeus halts and all is lost. These are macros recorded from the session ad hoc. An example might be:
function key_macro()
screen_update_disable()
MoveLineRightEx()
MoveLineRightEx()
MarkCopyEx()
MoveLineRightEx()
MoveDocumentEndEx()
print("ROADWAY.")
MarkPasteEx()
print("%TYPE,")
MoveLineHome()
MoveLineDown()
screen_update_enable()
screen_update()
end
key_macro() -- run the macro
This guy types a table name in front of a column name in some SQL code for example. Looks benign to me...
function key_macro()
screen_update_disable()
MoveLineRightEx()
MoveLineRightEx()
MarkCopyEx()
MoveLineRightEx()
MoveDocumentEndEx()
print("ROADWAY.")
MarkPasteEx()
print("%TYPE,")
MoveLineHome()
MoveLineDown()
screen_update_enable()
screen_update()
end
key_macro() -- run the macro
This guy types a table name in front of a column name in some SQL code for example. Looks benign to me...