Results 1 to 8 of 8

Thread: Using External Program From Script?

  1. #1
    Join Date
    Mar 2010
    Posts
    119
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Using External Program From Script?

    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!
    Wow. I've been gone a very long time indeed. So much has changed.

  2. #2
    Join Date
    Dec 2006
    Location
    Houston, TX USA
    Posts
    4,791
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    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

  3. #3
    Join Date
    Dec 2006
    Location
    Sydney, New South Wales, Australia
    Posts
    4,603
    Mentioned
    15 Post(s)
    Quoted
    42 Post(s)

    Default

    You can go as far as using external dynamic link-libraries (DLLs) in SCAR, as far as I know.
    You may contact me with any concerns you have.
    Are you a victim of harassment? Please notify me or any other staff member.

    | SRL Community Rules | SRL Live Help & Chat | Setting up Simba | F.A.Q's |

  4. #4
    Join Date
    Jul 2008
    Location
    England
    Posts
    763
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

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

  5. #5
    Join Date
    Nov 2007
    Location
    Nowhereville
    Posts
    1,155
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    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....ghlight=plugin - C importing
    http://villavu.com/forum/showthread....ghlight=plugin - c++
    Formerly known as Cut em2 it

  6. #6
    Join Date
    Oct 2006
    Location
    ithurtsithurtsithurtsithurts
    Posts
    2,930
    Mentioned
    7 Post(s)
    Quoted
    135 Post(s)

    Default

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

  7. #7
    Join Date
    May 2009
    Posts
    799
    Mentioned
    2 Post(s)
    Quoted
    16 Post(s)

    Default

    I wrote a simple plugin to load external programmes.

    http://villavu.com/forum/showthread....ghlight=runexe

  8. #8
    Join Date
    Mar 2010
    Posts
    119
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    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.
    Wow. I've been gone a very long time indeed. So much has changed.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •