Hi- I am trying to evaluate Zeus. My control using macros is important to me.
Within a macro I would like to return the value of the line number of the current insertion point.
I am editing huge (?) vbs scripts. I need to automatically put in Msgboxes on a particular line in my vbs document via a macro (that I will write in vbs).
Currently my macro which works in Zeus is:
Code: Select all
Function key_macro()
call zeus.screen_update_disable
call zeus.write("Msgbox " &Chr(34) &"This is line Number " & Chr(34))
call zeus.screen_update_enable
call zeus.screen_update
End Function
key_macro() 'run the macro
I see: "int get_char_at([line number] [,cursor]) " is available.
I see: "int get_line_pos() " is available.
I see: "$Line or $L Current line number" is available to me.
I have tried, but I am clueless as to the contraints of the Zeus object.
How can I set a string variable = the appropriate macro_tag, so I can have it return it and insert it in my Msgbox line (written by the macro)?
I have tried several things, and I do not come close. I just don't see enough examples, and I stuggle to translate meaning from a recipe in an alien script language.
I want to be sure that Zeus can help me or I must move on to evaluate another editor.
I would like to see a Macro repository categorized in the various scripting languages that we could all donate to and each learn from others!
Thanks in advance.
- Ed