SRL Archive - General

Using External Program From Script?


ForgotMyName

2010-03-19 17:46:52

I have an idea for something in SCAR. (Not related to RS.) It would involve some external stuff. I am wondering if there is a way to call an external program from within SCAR, or something similar, that will allow me to use another language to write the computational code for this. Thanks!

Wanted

2010-03-20 02:33:18

Local ports for communicating like KYAB did. I think SCAR might have a procedure that will run an external program try using the manual F1. If not write a plugin for that part

Daniel

2010-03-20 03:45:18

You can go as far as using external dynamic link-libraries (DLLs) in SCAR, as far as I know.

Quickmarch

2010-03-20 03:49:50

Use the ShellApi import in delphi and build wrappers for all the functions in it, then export them for scar.

Raskolnikov

2010-03-20 03:54:45

If what you are doing is a plugin created in C++ or Delphi, then yes.

http://villavu.com/forum/showthread.php?t=41311 - Delphi importing
http://villavu.com/forum/showthread.php?t=39677&highlight=plugin - C importing
http://villavu.com/forum/showthread.php?t=13118&highlight=plugin - c++

senrath

2010-03-20 11:26:15

SCAR has support for system API calls, so you can use that. You have to enable it first, though.

caused

2010-03-20 11:39:28

I wrote a simple plugin to load external programmes.

http://villavu.com/forum/showthread.php?t=49162&highlight=runexe

ForgotMyName

2010-03-20 15:59:36

Thanks for the replies, everyone.

I'll be a bit more specific. I plan to use SCAR to process a puzzle on a screen, export this state to an external solver, and retrieve and submit the results. I guess this could work for treasure trail puzzles too, although I was intending to use a different game.

I just want to do this in the simplest way possible. My knowledge of system level stuff is relatively limited, and I would like to avoid this as much as possible. My original idea would have used an external program and pipes on stdio.