I need to be able to open executables and (arbitrary) webpages from
within a lua script in Scite. So far, every approach I take is not
right. I am on Windows XP.
 
Lua's os.execute shows a big ugly command prompt. Also, giving it "start
http://www.google.com"; makes it crash.
 
I tried sciteOther, which has a "silent execute." However, this cannot
handle spaces in file paths, and is somewhat weird in that it writes to
temporary files. Giving it "start http://www.google.com"; makes it crash
as well. This has something to do with threading, I think.
 
I can create a command (command.name.11.*=launchUrl...) that launches a
webpage, using subsystem 2, which works. However, this is limited to one
certain webpage. Even if I am somehow able to make the command dynamic
(maybe by $(propery) interpolation?), I am still not able to call a
custom command from a script.
 
What I would like access to is the same "subsystem" that are in the
commands defined in the properties file. I wish there were a
os.ShellExecute, or perhaps a scite.CallCustomCommand(11, "arguments").

-Ben

PS: I also wrote dlls, but had problems getting loadlib to work. Writing
to .bat files and running them didn't work either.

_______________________________________________
Scite-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scite-interest

Reply via email to