Results 1 to 15 of 15

Thread: Excecute Script after Opening

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

    Default Excecute Script after Opening

    Hey.

    Is there a possibility, that a script gets directly excecuted after its opened ?

    ~caused

  2. #2
    Join Date
    Oct 2007
    Location
    Denmark
    Posts
    409
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    You can make your script a standalone .exe:
    LINK

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

    Default

    That sounds good :O. Thanks !

    Though it would be cool, if you could get rid of that "stop-start" script window, and that the script would run directly after clicking the exe.

    Checking it out now.

  4. #4
    Join Date
    Jul 2007
    Posts
    1,055
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I like the stop-start window. What I don't like is that you MUST have runescape.com open + the game loaded...What if we are using SMART.

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

    Default

    Yeah, the script i would like to directly run, isnt even made for runescape :X...

  6. #6
    Join Date
    Aug 2007
    Location
    in a random little world
    Posts
    5,778
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

  7. #7
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    5,553
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Shuttleu View Post
    i could try
    i just need to know what command it is you need to exicute in cmd to open and run a script

    ~shut
    It isn't that easy, else everyone could do it. Okay, not everyone.
    ~Hermen

  8. #8
    Join Date
    Jan 2008
    Location
    California, US
    Posts
    2,765
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Well Hermen should try to make one . Just a lot more better and useful (run ANY SCAR script, not just for RuneScape).

  9. #9
    Join Date
    Jul 2007
    Posts
    1,055
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    yeah and maybe change from a .exe to something else (if possible? I believe their are more executable files than just .exe...like .dat or something, idk). Cause .exe scares people about viruses all the time.

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

    Default

    Hmmn, another Idea.
    Might it be possible to compile scar scripts to an exe file with a suitable pascal compiler ?_?

    I Found this in Sythe's Programm

    unzip 0.18 Copyright 1998-2002 Gilles Vollant - http://www.winimage.com/zLibDll 1.1.4
    ÿÿneed dictionary incorrect data check incorrect header check invalid window size unknown compression method wb r+b rb

    invalid bit length repeat too many length or distance symbols invalid stored block lengths invalid block type incompatible version buffer error insufficient memory data error stream error file error stream end invalid distance code invalid literal/length code inflate 1.1.4 Copyright 1995-2002 Mark Adler

    # + 3 ; C S c s ƒ £ Ã ã p p
    ! 1 A a  Á  0 @ `



    incomplete dynamic bit lengths tree oversubscribed dynamic bit lengths tree incomplete literal/length tree oversubscribed literal/length tree empty distance tree with lengths incomplete distance tree oversubscribed distance tree __CxxFrameHandler A _CxxThrowException ¹_splitpath =atoi __mbsicmp Y_mbscmp ¸strcmp ºstrcpy ²sprintf ^free Ãstrrchr ¿_strdup ™memset ‘malloc Wfopen ]fread ffwrite dftell bfseek Lfclose @calloc MSVCRT.dll ??1type_info@@UAE@XZ U __dllonexit †_onexit Ó _exit H _XcptFilter Iexit  _acmdln X __getmainargs _initterm ƒ __setusermatherr  _adjust_fdiv j __p__commode o __p__fmode  __set_app_type Ê _except_handler3 · _controlfp \LocalFree ó FormatMessageA ÄRemoveDirectoryA qGetLastError ƒ DeleteFileA K CreateDirectoryA nMoveFileA C CopyFileA 4 CloseHandle S CreateFileA ^GetFileAttributesA SetFileAttributesA USizeofResource eLockResource WLoadResource ã FindResourceA ÂReleaseMutex WaitForSingleObject ^TerminateProcess VSleep o CreateThread ` CreateMutexA ¹ ExitProcess qUnmapViewOfFile hMapViewOfFile T CreateFileMappingA €OpenFileMappingA ÆlstrcpyA ÃlstrcmpiA ÌlstrlenA ¤WriteFile ½lstrcatA SetFileTime ZLocalFileTimeToFileTime  DosDateTimeToFileTime eGetFileTime GetModuleHandleA ·GetStartupInfoA KERNEL32.dll ¾MessageBoxA ¿MessageBoxExA \GetWindowRect í GetClassNameA Ö FindWindowExA úRegisterHotKey FGetSystemMetrics /SetFocus SendMessageA ^GetWindowTextA jShowWindow ŽUnregisterHotKey © DrawIcon ŒIsIconic ð GetClientRect · EnableWindow žLoadIconA GetLastActivePopup 0SetForegroundWindow USER32.dll t ShellExecuteExA SHELL32.dll ª_setmbcp iŸ@ ë:@ *;@ oK@ No error *.* *.* \ \ not found not found Wrong operation not found *.* Copy Copy of Copy (1) of Copy of ) of Copy ( %s%d%s%s%s \ \ is read olny. Do you want delete it? Warning ´»@ .PAX ´»@ .PAVCFExeption@@ Cannot continue... There is an instance of a ScarPack auto already running.

    Close the other ScarPack auto before starting a new one.

    You will be taken to the previous open copy when you click OK. SunAwtCanvas Please open RuneScape first RUNESCAPE MUST BE RUNNING!

    Load RuneScape first and login. Then try again. c:\temp c:\temp\scarpack c:\temp\scarpack SCARPACKAGE #132 c:\temp\scarpack\pack.zip c:\temp\scarpack\pack.zip c:\temp\scarpack\ c:\temp\scarpack\pack.zip c:\temp\scarpack\scripts c:\temp\scarpack\scripts\script.scar SCARSCRIPT #131 %d ##HWND## c:\temp\scarpack\scripts\script.scar ´»@ .PAVCException@@ LONGSTRING #129 File Access TfrmFileWall Always permit for this folder Ok TButton Getting started with SCAR Cannot continue... You have closed or restarted RuneScape since you opened this auto.
    You must restart this auto to continue using it.
    This instance will now close. About to begin... The auto is about to start...

    Before you click ok make sure you:
    ----------------------------------------------------------------
    HAVE RUNESCAPE OPEN, SHOWING, AND MAXIMIZED
    ----------------------------------------------------------------
    This window will minimize while your auto runs
    A new program will appear: SCAR.
    You do not need to do anything with this
    When you are ready to stop the script press Ctrl + S open c:\temp\scarpack\scar.exe -open c:\temp\scarpack\scripts\script.scar -run c:\temp\scarpack\ scarpackscarinstance Cannot continue There is something wrong with this script. It has been corupted or was not prepared properly.
    Contact the author of the script for more information.
    This program will now exit. themutex Already running Auto already started... If nothing happens after 5 seconds
    Click stop and try again. If you still get nowhere this means this auto
    may not work for you.
    That seems to be the Part that launches The script.. Or i might be wronng :3. What do you think ?

    open c:\temp\scarpack\scar.exe -open c:\temp\scarpack\scripts\script.scar -run c:\temp\scarpack\ scarpackscarinstance
    Last edited by caused; 06-28-2009 at 04:43 AM.

  11. #11
    Join Date
    Dec 2008
    Posts
    2,813
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    In SCAR 2.03 you could take off the start/stop button ;]

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

    Default

    But you still have to have Runescape running ?

  13. #13
    Join Date
    Aug 2007
    Location
    in a random little world
    Posts
    5,778
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

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

    Default

    Quote Originally Posted by Shuttleu View Post
    here you go

    "C:\Program Files\SCAR 3.20\scar.exe" -open "C:\Program Files\SCAR 3.20\Scripts\Examples/BoolToStr.scar" -run

    open up cmd and run that
    or put it in a bat file

    ~shut
    Fantastic =).
    Working great!.

    Edit:
    That is so great ... Now i think i know a way to make my own .exe file =).

    thanks again xD
    Last edited by caused; 06-28-2009 at 10:04 PM.

  15. #15
    Join Date
    Aug 2007
    Location
    in a random little world
    Posts
    5,778
    Mentioned
    0 Post(s)
    Quoted
    7 Post(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
  •