Results 1 to 10 of 10

Thread: non runescape Script.

  1. #1
    Join Date
    Jul 2006
    Posts
    189
    Mentioned
    1 Post(s)
    Quoted
    19 Post(s)

    Default non runescape Script.

    right well i havnt been on here in a long time so hey!

    im wanting to know if the script i need is possible before i start trying to code it.

    This is what i want....

    at X time for the script to close a program... and at X time for it to reopen the program.

    thats pretty much it..

    the script could either count the time until it needs to close the program or it could see what the time is from windows or whatever.

    is this possible?

  2. #2
    Join Date
    Mar 2008
    Location
    New Jersey
    Posts
    1,673
    Mentioned
    1 Post(s)
    Quoted
    9 Post(s)

    Default

    yea that definitely seems possible, just use MarkTime and TimeFromMark, and since it isn't for runescape you could probably even use coordinates to make sure that's it's going to close and open the program with no problem.

  3. #3
    Join Date
    Jul 2006
    Posts
    189
    Mentioned
    1 Post(s)
    Quoted
    19 Post(s)

    Default

    so how would i do the time part?

  4. #4
    Join Date
    Mar 2008
    Location
    New Jersey
    Posts
    1,673
    Mentioned
    1 Post(s)
    Quoted
    9 Post(s)

    Default

    make something be a variable to hold the time, like test for example. Then when you want it to start counting to the certain time, you do:

    MarkTime(example);

    then you do what ever while it's counting, and say you want it to count to 30 minutes before closing program, you do:

    SCAR Code:
    if(TimeFromMark(example) > 30 * 60000) then
    begin
      //close program;
    end;

    anything else?

  5. #5
    Join Date
    Jul 2006
    Posts
    189
    Mentioned
    1 Post(s)
    Quoted
    19 Post(s)

    Default

    because like i said i want it to open a program... wait for X amount of time and then close it.

    then i want it to wait... X amount of time and open it again...

    we are talking Hours not minutes... so would SCAR still run?

  6. #6
    Join Date
    Mar 2008
    Location
    New Jersey
    Posts
    1,673
    Mentioned
    1 Post(s)
    Quoted
    9 Post(s)

    Default

    you can still do it for hours and to make it keep opening then closing just use a repeat/until and yes scar would still be running, I had a script run for 14 hours once on runescape and I heard people say they had scripts run for days.

  7. #7
    Join Date
    Jul 2006
    Posts
    189
    Mentioned
    1 Post(s)
    Quoted
    19 Post(s)

    Default

    okay so i see what you mean but what do i do with this:

    MarkTime(example);

  8. #8
    Join Date
    Feb 2007
    Location
    Access Violation at 0x00000000
    Posts
    2,865
    Mentioned
    3 Post(s)
    Quoted
    18 Post(s)

    Default

    SCAR Code:
    Program New;

    Const
      Mins = 30;

    Var
      Time, ToTime : Integer;

    Procedure SetNewTime;
    Begin
      Time := 0;
      ToTime := (Mins * 60000);
      MarkTime(Time);
    End;

    Begin
      SetNewTime;
      While TimeFromMark(Time) < ToTime Do Wait(1); //Waits the given minutes, Wait(1) because else you'll get SERIOUS lag.
      //Close program here
      //Now we do the whole thing again.
      SetNewTime;
      While TimeFromMark(Time) < ToTime Do Wait(1); //Waits again...
      //Open program here
    End.

    That's for once.
    If you want to to keep on going with opening and closing, do:

    SCAR Code:
    Program New;

    Const
      Mins = 30; //Minutes between open/close
      HowManyTimes = 1; //How many times to open and close

    Var
      Time, ToTime, T : Integer;

    Procedure SetNewTime;
    Begin
      Time := 0;
      ToTime := (Mins * 60000);
      MarkTime(Time);
    End;

    Begin
      Repeat
        SetNewTime;
        While TimeFromMark(Time) < ToTime Do Wait(1); //Waits the given minutes, Wait(1) because else you'll get SERIOUS lag.
        //Close program here
        //Now we do the whole thing again.
        SetNewTime;
        While TimeFromMark(Time) < ToTime Do Wait(1); //Waits again...
        //Open program here
        Inc(T); //We've opened and closed once more...
      Until(HowManyTimes = T);
    End.
    Ce ne sont que des gueux


  9. #9
    Join Date
    Jul 2006
    Posts
    189
    Mentioned
    1 Post(s)
    Quoted
    19 Post(s)

    Default

    okay yeah i understand this...

    but say i didnt want it to close the program straight away... say i wanted it to wait for X amount of minutes or hours.

  10. #10
    Join Date
    Feb 2007
    Location
    Access Violation at 0x00000000
    Posts
    2,865
    Mentioned
    3 Post(s)
    Quoted
    18 Post(s)

    Default

    Well, thats what my posted script does...
    Waits "Mins" minutes and then closes it.
    Waits "Mins" minutes again, then opens it.

    If I may ask, where do you think on using this for? Maybe there are better functions for it then.
    Ce ne sont que des gueux


Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Non-Runescape Script. Help!
    By N.R.P. {GiiR} in forum OSR Help
    Replies: 7
    Last Post: 07-17-2008, 01:59 AM
  2. requesting a non-runescape script have a look!
    By seany in forum RS3 Outdated / Broken Scripts
    Replies: 6
    Last Post: 06-27-2007, 01:53 AM

Posting Permissions

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