Lone Wolf Development Forums

Lone Wolf Development Forums (http://forums.wolflair.com/index.php)
-   Realm Works Discussion (http://forums.wolflair.com/forumdisplay.php?f=67)
-   -   Foreign Objects & External Programs (http://forums.wolflair.com/showthread.php?t=49855)

Acenoid July 1st, 2014 03:31 PM

Foreign Objects & External Programs
Hello there!

I want to start some external programs from within RW. I have read in other threads that the snippet "foreign objects" is available for that purpose.

I'm trying to start a .jar file. that program relies on the current path. It doesn't seem to launch or produce an error message. Is the "home directory" set by RW to the external programs path? Or do I have to link it another way?

Parody July 1st, 2014 05:37 PM

Foreign Objects hold a copy of whatever file you put into it. When you tell RW to view the object, RW writes a copy of the foreign object to your temp directory and launches it. If my test was accurate, the starting directory for the new process is the same as for Realm Works' process.

I wouldn't recommend trying to link programs into your database, but a batch file, VBScript, or PowerShell script might be the best way to do so. I haven't tried HTML with file: links.

Syrkres October 10th, 2019 10:28 AM

Just purchased RW and looking for more information on "Foreign Objects"? Anyone have a link to a tutorial or document detailing how these work?

kbs666 October 11th, 2019 10:34 PM

A foreign object is a file that RW doesn't inherently know how to open. So to open it RW relies on a program that can open it being installed on the computer. This functions exactly like double clicking a file in Windows Explorer.

All times are GMT -8. The time now is 02:55 AM.

Powered by vBulletin® - Copyright ©2000 - 2021, vBulletin Solutions, Inc.
wolflair.com copyright 1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.