Page 1 of 2 12 LastLast
Results 1 to 25 of 29

Thread: LOL! I found a way out of the 6 Hour logout :D

  1. #1
    Join Date
    Dec 2011
    Location
    Toronto, Ontario
    Posts
    6,424
    Mentioned
    84 Post(s)
    Quoted
    863 Post(s)

    Default LOL! I found a way out of the 6 Hour logout :D

    I was considering this idea, if it detects a bitmap of the login screen then to hit the refresh button

  2. #2
    Join Date
    Nov 2006
    Posts
    2,369
    Mentioned
    4 Post(s)
    Quoted
    78 Post(s)

    Default

    Quote Originally Posted by Sin View Post
    I was considering this idea, if it detects a bitmap of the login screen then to hit the refresh button
    Doesn't work in smart. Years ago I made Harry's fight caver refresh rs when rs updated
    Quote Originally Posted by DeSnob View Post
    ETA's don't exist in SRL like they did in other communities. Want a faster update? Help out with updating, otherwise just gotta wait it out.

  3. #3
    Join Date
    Dec 2011
    Location
    Toronto, Ontario
    Posts
    6,424
    Mentioned
    84 Post(s)
    Quoted
    863 Post(s)

    Default

    Ik, i was talking about the client

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

  5. #5
    Join Date
    Oct 2008
    Location
    C:\Simba\Includes\
    Posts
    7,566
    Mentioned
    19 Post(s)
    Quoted
    180 Post(s)

    Default

    In the browser there is
    Away for awhile, life is keeping me busy. | Want to get my attention in a thread? @Kyle Undefined; me.
    { MSI Phoenix || SRL Stats Sigs || Paste || Scripts || Quotes || Graphics }

    When posting a bug, please post debug! Help us, help you!

    I would love to change the world, but they won't give me the source code. || To be the best, you've got to beat the rest. || Logic never changes, just the syntax.
    If you PM me with a stupid question or one listed in FAQ, or about a script that is not mine, I will NOT respond.


    SRL is a Library of routines made by the SRL community written for the Program Simba. We produce Scripts for the game Runescape.


  6. #6
    Join Date
    Dec 2011
    Location
    Toronto, Ontario
    Posts
    6,424
    Mentioned
    84 Post(s)
    Quoted
    863 Post(s)

    Default

    Yeah, just manually add the coords of the refresh button.
    Ofc, the FBI might ban you if theres no IRL antiban...

  7. #7
    Join Date
    Jan 2012
    Posts
    81
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Why did I not think of that?

    Anyway, much love for you Sin haha good thinking.

  8. #8
    Join Date
    Jan 2012
    Location
    Under your bed.
    Posts
    414
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Solidone40 View Post
    Why did I not think of that?

    Anyway, I love you SIN haha.
    ~no homo?
    Pure --> Berserker progress: http://villavu.com/forum/showthread.php?p=907073
    Best SRL Member around (Bonfield): http://villavu.com/forum/showthread.php?p=1106646
    Sorry for my english grammer.
    ~Bwuk.

  9. #9
    Join Date
    Nov 2011
    Posts
    232
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    You can refresh the SMART client?

  10. #10
    Join Date
    Feb 2011
    Location
    The Future.
    Posts
    5,600
    Mentioned
    396 Post(s)
    Quoted
    1598 Post(s)

    Default

    Quote Originally Posted by Swagger View Post
    You can refresh the SMART client?
    Absolutely not..
    I am Ggzz..
    Hackintosher

  11. #11
    Join Date
    Jan 2009
    Location
    Turlock/LA, California
    Posts
    1,494
    Mentioned
    3 Post(s)
    Quoted
    66 Post(s)

    Default

    if you refresh the internet browser, wont it have a new client, thus all the chords will be set to a different client and not work...?

    EDIT: try it out -

    Code:
    program new;
    {$I SRL/SRL.simba}
    
    
    begin
      setupsrl;
      mmouse(50,50,1,1);
    
    end.
    it changed the chords after a refresh for me
    Last edited by x[Warrior]x3500; 02-13-2012 at 12:52 AM.

  12. #12
    Join Date
    Oct 2009
    Location
    Stockton, CA
    Posts
    2,040
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by ggzz View Post
    Absolutely not..
    I'm in your signature .

    On topic: I believe when you refresh the page the handle of the client will change and you'll lose focus and somehow have to refocus it (this will, as stated above, change the coords).
    Join the IRC! irc.rizon.net:6667/srl | SQLite (0.99rc3+) | SRL Doc | Simba Doc | Extra Simba Libraries (openSSL & sqlite3)
    Quote Originally Posted by #srl
    10:45 < Toter> daphil when can get sex anyday I want
    10:45 < Toter> he is always on #SRL
    "A programmer is just a tool which converts caffeine into code"

  13. #13
    Join Date
    Feb 2011
    Location
    The Future.
    Posts
    5,600
    Mentioned
    396 Post(s)
    Quoted
    1598 Post(s)

    Default

    Quote Originally Posted by Sex View Post
    I'm in your signature .

    On topic: I believe when you refresh the page the handle of the client will change and you'll lose focus and somehow have to refocus it (this will, as stated above, change the coords).
    Haha of course.

    On Topic:

    Find the process and set the owner/parent window as the target.. If it's your browser then find the child window of it that contains the java applet and whala..
    Simba Code:
    function FindAndSetTarget(TitlePrefix: String; SetAsTarget: Boolean): Boolean;
    var
      T: TSysProcArr;
      I: Integer;
    begin
      T:= GetProcesses();
      for I := 0 to high(T) do
        if StartsWith(TitlePrefix, T[i].Title) then
        begin
          Result := True;
          if SetAsTarget then
          begin
            SetTarget(T[i]);
            ActivateClient;
          end;
        end;
    end;
    I am Ggzz..
    Hackintosher

  14. #14
    Join Date
    Oct 2011
    Posts
    805
    Mentioned
    21 Post(s)
    Quoted
    152 Post(s)

    Default

    Something like:

    Simba Code:
    program new;
    {$i SRL/SRL.simba}

    function FindAndSetTarget(TitlePrefix: String; SetAsTarget: Boolean): Boolean;
    var
      T: TSysProcArr;
      I: Integer;
    begin
      T:= GetProcesses();
      for I := 0 to high(T) do
        if StartsWith(TitlePrefix, T[i].Title) then
        begin
          Result := True;
          if SetAsTarget then
          begin
            SetTarget(T[i]);
            ActivateClient;
          end;
        end;
    end;

    procedure PressKey2(key : word);
    begin
    keydown(key);
    wait(20+random(20));
    keyup(key);
    end;

    begin
      setupsrl;
      activateclient;
      // Now RS aplet is set as target
      wait(500);
      writeln(FindAndSetTarget('Rune',TRUE));  // Set Browser as target
      wait(500);
      mouse(190,146,1,1,1); // click above rs window to activate browser
      PressKey2(116); //f5
      wait (1000);

      // Return back to RS Applet - no idea

    end.

    Idk how to set target back to RSAplet ,I didn't find proper function. GetProcesses search by window's caption.

  15. #15
    Join Date
    Sep 2010
    Location
    Azeroth
    Posts
    395
    Mentioned
    0 Post(s)
    Quoted
    17 Post(s)

    Default

    cant you use appa as well for refreshing the page lets say if you do not want to have simba take control overyour mouse?

  16. #16
    Join Date
    Dec 2006
    Location
    Program TEXAS home of AUTOERS
    Posts
    7,934
    Mentioned
    26 Post(s)
    Quoted
    237 Post(s)

    Default

    I thought of this once, though it would not work for SMART, and also I wouldn't want to use RS client. Quite annoying, I rather browse and have my Bots running all at the same time.

  17. #17
    Join Date
    Nov 2006
    Location
    Location, Location
    Posts
    1,126
    Mentioned
    6 Post(s)
    Quoted
    41 Post(s)

    Default

    Quote Originally Posted by P1nky View Post
    I thought of this once, though it would not work for SMART, and also I wouldn't want to use RS client. Quite annoying, I rather browse and have my Bots running all at the same time.
    Could use in a vmware/virtualbox for that one special bot

  18. #18
    Join Date
    Dec 2006
    Location
    Program TEXAS home of AUTOERS
    Posts
    7,934
    Mentioned
    26 Post(s)
    Quoted
    237 Post(s)

    Default

    Quote Originally Posted by Kave View Post
    Could use in a vmware/virtualbox for that one special bot
    Hahaha to be honest, while writing that post, I was thinking about VM's
    *sigh* I need some sleep. Goodnight.

  19. #19
    Join Date
    Oct 2011
    Posts
    805
    Mentioned
    21 Post(s)
    Quoted
    152 Post(s)

    Default

    Quote Originally Posted by wantonman View Post
    cant you use appa as well for refreshing the page lets say if you do not want to have simba take control overyour mouse?
    APPA don't work with Simba.

  20. #20
    Join Date
    Nov 2010
    Posts
    305
    Mentioned
    0 Post(s)
    Quoted
    6 Post(s)

    Default

    Can't you do like when a update occurs, you must re-run Simba ofcourse, if the update occurs why not activate the Simba and make it click the Run button again and wait till SMART loaded wouldn't that be possible?

  21. #21
    Join Date
    Oct 2011
    Posts
    805
    Mentioned
    21 Post(s)
    Quoted
    152 Post(s)

    Default

    @Up

    Wow ,It's good way of thinking.


    I have an idea!

    Simba can be re-run by external aplication. It is my frame:

    Project1:

    in script:
    Simba Code:
    if (RSUpdated) then
    begin
      FindAndSetTarget('SimbaReRunner',TRUE); // SimbaReRunner - find better name? :p
      PressKey( KEY_FOR_ACTIVATION);

    end;

    SimbaReRunner can be just console app and it will work in background.
    Now in SimbaReRunner:

    [CODE]
    { PSEUDOCODE }

    if WaitUntilKeyDown(KEY_FOR_ACTIVATION) then
    KillProces('SMART');
    KillProces('Simba');

    Open .Bat file;

    I can't do this ,because of lack proper abilities and compiler ,but maybe someone will take care of it
    Last edited by bg5; 02-16-2012 at 08:50 AM.

  22. #22
    Join Date
    Nov 2010
    Posts
    305
    Mentioned
    0 Post(s)
    Quoted
    6 Post(s)

    Default

    Quote Originally Posted by beginner5 View Post
    @Up

    Wow ,It's good way of thinking.


    I have an idea!

    Simba can be re-run by external aplication. It is my frame:

    Project1:

    in script:
    Simba Code:
    if (RSUpdated) then
    begin
      FindAndSetTarget('SimbaReRunner',TRUE); // SimbaReRunner - find better name? :p
      PressKey( KEY_FOR_ACTIVATION);

    end;

    SimbaReRunner can be just console app and it will work in background.
    Now in SimbaReRunner:

    Code:
    { PSEUDOCODE }
    
    if WaitUntilKeyDown(KEY_FOR_ACTIVATION) then
    KillProces('SMART');
    KillProces('Simba');
    OpenFile('C:\Users\Simba\scripts\SimbaDung.simba'); // file name and path can be send by simba.
    
    // And here is little problem ,because after open file ,you must run script ,but //someone with knowladge in libraries will know how to do it.
    
    ActivateWindow('SimbaDung');
    Press(F9);
    I can't do this ,because of lack proper abilities and compiler ,but maybe someone will take care of it
    Hhehe thanks seems good, might with some help you'll get it.

    I personally don't see why it wont be possible if it works with the browser, why not with Simba itself? Sure with MSI it'll be harder but I guess it wont be impossible to make a MSI checker (And use the already filled in details to run).

  23. #23
    Join Date
    Dec 2007
    Location
    192.168.1.73
    Posts
    2,439
    Mentioned
    6 Post(s)
    Quoted
    119 Post(s)

    Default

    If you're happy with the memory build up, you can quite simply do this:

    Simba Code:
    procedure ReloadSMART;
    begin
      SMART_Server := {new server that wasn't being used before, perhaps a random one in an array};
      SetupSRL;
    end;

    That just add this line at the start of your mainloop:

    Simba Code:
    SRL_Procs[srl_OnRSUpdate] := @ReloadSMART;

    This way you maintain progress reports, but you build up a lot of memory, which can make Simba lag.

  24. #24
    Join Date
    Dec 2011
    Location
    Toronto, Ontario
    Posts
    6,424
    Mentioned
    84 Post(s)
    Quoted
    863 Post(s)

    Default

    Oh..
    I have 6GB RAM, all I need is for it to run overnight.
    Feasible?

  25. #25
    Join Date
    Dec 2007
    Location
    192.168.1.73
    Posts
    2,439
    Mentioned
    6 Post(s)
    Quoted
    119 Post(s)

    Default

    Quote Originally Posted by Sin View Post
    Oh..
    I have 6GB RAM, all I need is for it to run overnight.
    Feasible?
    I have 8GB and I find it enough, so I expect it'll be fine for you. The only problem with SMART is that Java has the worse garbage system ever. You can always use Harry's way of destroying all resources and reloading from cmd.

Page 1 of 2 12 LastLast

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
  •