Results 1 to 13 of 13

Thread: Having A Script Run Another Program?

  1. #1
    Join Date
    Aug 2009
    Posts
    164
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Having A Script Run Another Program?

    Is it possible to have a SCAR script issue a command to run another program?

    For example, Java has system command that does this.

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

    Default

    You could make a script that presses win+r. and types in the programme you want to run.

    I dont think that scar has such function inbuild, but I may be wrong .

    You could write a simple Plugin with delphi though .

    ~caused

  3. #3
    Join Date
    Aug 2009
    Posts
    164
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks for the reply,

    Are there any tutorials with Delphi that you can link me to that would give me some more information?

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

    Default

    I quickly wrote a plugin that does the job .

    just unpack and put it in the "scar/plugins/" folder. When you have done that, you can use "RunExe('path+filename.exe');.

    For example:
    Code:
    program New;
    begin
      RunExe('c:\SUNotepad.exe');
    end.
    Good Luck.

    ~caused

  5. #5
    Join Date
    Aug 2009
    Posts
    164
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    WOW! Thank you for that! Works perfectly! +REP
    Last edited by scuz 10; 08-23-2009 at 11:04 AM.

  6. #6
    Join Date
    Mar 2007
    Posts
    3,116
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    You may have to pack the .bat into a .exe, you just have to try it.

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

    Default

    Quote Originally Posted by caused View Post
    I quickly wrote a plugin that does the job .

    just unpack and put it in the "scar/plugins/" folder. When you have done that, you can use "RunExe('path+filename.exe');.

    For example:
    Code:
    program New;
    begin
      RunExe('c:\SUNotepad.exe');
    end.
    Good Luck.

    ~caused
    Erm,

    OpenFile?

    lol
    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 |

  8. #8
    Join Date
    Mar 2007
    Posts
    3,116
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    Quote Originally Posted by Dan's The Man View Post
    Erm,

    OpenFile?

    lol
    He meant executing it.

  9. #9
    Join Date
    Aug 2007
    Posts
    152
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    caused! that works great, ty so much

    And to anyone wondering, it works fine with .bat files

  10. #10
    Join Date
    Aug 2009
    Posts
    164
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Lol I didn't know this would cause such a big discussion, sorry guys.

    It appears caused's plugin will run almost any command prompt commands, so it should be able to open things with almost any extension!

    Thanks again caused!

  11. #11
    Join Date
    Aug 2008
    Location
    !!LOL!!
    Posts
    247
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    is there any tuts on delphi for this stuff?

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

    Default

    Woaw. I'm glad that you find it that usefull =).
    Yeah it basicly executes everything thats excecuteable .

    ~caused

    //EDIT: hackncrack1: Check out the plugins folder, theres an example.

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

    Default

    Quote Originally Posted by hackncrack1 View Post
    is there any tuts on delphi for this stuff?
    Well, for executing stuff: ShellExecute in the ShellAPI use
    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 |

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
  •