Hi,
I'm trying to write a small Lua script (for SciTE 1.72). Here's my needs :
I would like to use only one instance of scite (check.if.already.open=1 and
'Options/Open files here' checked). But in time to times I would like to
open another scite window to compare two versions of a file or see two
places in the same file.
So I wrote this small function and assign it to a shortcut (needs SciteOther
for opening) :
function OpenInNewWindow_WithSciteOther()
local curFile = props['FilePath']
scite.MenuCommand(413) -- uncheck open files here
-- Command ('IDM_OPENFILESHERE') -- use SciteOther function
OpenOther(curFile)
end
But I'm not able to uncheck the 'Open files here' menu entry (neither with
scite.MenuCommand nor with SciteOter Command).
Am I doing something wrong or is it impossible ?
Note: I cannot use IDM_OPENFILESHERE, I have this error :
bad argument #1 to `MenuCommand' (number expected, got nil)
Thanks
JJL
--
http://kubuntu.free.fr
_______________________________________________
Scite-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scite-interest