• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Foreign Objects & External Programs

Acenoid

Well-known member
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?
 
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.
 
Just purchased RW and looking for more information on "Foreign Objects"? Anyone have a link to a tutorial or document detailing how these work?
 
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.
 
Back
Top