I am trying to write a little script in VBS to insert a line into all files open
in PsPad. I used an example script off the help file to start me off as I am new
to scripting in PsPad, but I am now getting an error on one of the lines
Const module_name = "AddLines" 'this name must be unique !!!
Const module_ver = "1" 'version
Sub Procedure
Set obj = NewEditor()
For i = 0 To editorsCount - 1
obj.assignEditorByIndex(i)
obj.activate
obj.command "ecEditorTop"
obj.command "ecInsertLine"
obj.command "ecChar{test}"
'obj.saveFile
Next
End Sub
' name "Init" Is required, its called automatically during initialization To
create menu items
Sub Init
addMenuItem "Add Line","", "Procedure"
End Sub
Is there anyway to step through the code or get the values of the variables as
you step through?
It is falling over on the ecChar line.
Any help? Using 4.5.5 (2357)
--
Vas
<http://forum.pspad.com/read.php?2,51067,51067>
PSPad freeware editor http://www.pspad.com