View Full Version : Adding HTML to Lscript

05-28-2003, 06:34 PM
Is this supported?

I want buttons that link to websites or send email...

05-29-2003, 08:21 AM
From what I've found, you can use the spawn() command to launch an external process. I've only tried this with a Modeler script and use the @asyncspawn pragma directive:

@version 2.2
ie_id = spawn("iexplore http://www.newtek.com");
if(ie_id == nil)
info("Failed to launch process");
<!--end snippet-->

The ie_id variable becomes the process id and can be used with the wait and terminate commands, maybe others, I'm still a little new at this.

Similarly, a new email could be initiated using:
"iexplore mailto:[email protected]"

I was only able to launch IE by copying the .exe to the Lightwave directory, but you could presumably work around that by editing your environment variables.

And thanks to you, I wouldn't have gotten this deep into LScript if it wasn't for you touching on it during the LW Tour in Portland! Nothing like a student being able to return the favor:)

Hope this helps. There may be more you can do with C libraries and header files, but that's beyond me!

06-11-2003, 10:38 PM
you might try just launching the url (eliminate the iexplore part ) ..so that way whatever handler is configured (IE, Mozilla, Netscape) will launch instead.