Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Realm Works Forums > Realm Works Discussion

Notices

Reply
 
Thread Tools Display Modes
Acenoid
Senior Member
 
Join Date: Dec 2013
Posts: 798

Old July 1st, 2014, 03:31 PM
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?
Acenoid is offline   #1 Reply With Quote
Parody
Senior Member
 
Join Date: Jan 2013
Location: Rochester, MN
Posts: 1,515

Old 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.

Parody is offline   #2 Reply With Quote
Syrkres
Junior Member
 
Join Date: Oct 2019
Location: Eastern US
Posts: 23

Old 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?
Syrkres is offline   #3 Reply With Quote
kbs666
Senior Member
 
Join Date: Oct 2014
Location: Chicago, IL
Posts: 1,690

Old 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.

my Realm Works videos
https://www.youtube.com/channel/UCZU...4DwXXkvmBXQ9Yw
kbs666 is offline   #4 Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 03:10 PM.


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