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

Thread: ClickToContinueEx;

  1. #1
    Join Date
    Feb 2006
    Posts
    3,044
    Mentioned
    4 Post(s)
    Quoted
    21 Post(s)

    Default ClickToContinueEx;

    Hey, i think that at the moment SRL ClickToContinue is not working, so i tried make a new one, and here is what i got

    PHP Code:
    function ClickContinueEx(ClickWaitBoolean): Boolean;
    var 
    txty :Integer;
    begin
      
    if not AreTalking then Exit;
      
    Result := FindColor(txty16711680171432468465);
      if (
    Result and Clickthen begin
        Mouse
    (tx,ty1802True);
        
    MouseBox(113505044163);
        if 
    Wait then ChatWait;
      
    end;
    end
    ~Home

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

    Default

    Why do people use Tolerance if they set it to 0?

  3. #3
    Join Date
    Feb 2006
    Posts
    3,044
    Mentioned
    4 Post(s)
    Quoted
    21 Post(s)

    Default

    Quote Originally Posted by IceFire908 View Post
    Why do people use Tolerance if they set it to 0?
    Well i was not sure is FindColors Scar 3,20 Function or was it SRL Function

    ~Home

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

    Default

    SCAR Code:
    Mouse(Pointss[Numss].x, Pointss[Numss].y, 180, 2, True);
    ?
    Can't you just do
    SCAR Code:
    Mouse(Points[0].x, Points[0].y, 180, 2, true);
    Numss is never set, so it is 0..and you could just use FindColor if no tolerance and you only use one point.

  5. #5
    Join Date
    Feb 2006
    Posts
    3,044
    Mentioned
    4 Post(s)
    Quoted
    21 Post(s)

    Default

    Quote Originally Posted by Da 0wner View Post
    SCAR Code:
    Mouse(Pointss[Numss].x, Pointss[Numss].y, 180, 2, True);
    ?
    Can't you just do
    SCAR Code:
    Mouse(Points[0].x, Points[0].y, 180, 2, true);
    Numss is never set, so it is 0..and you could just use FindColor if no tolerance and you only use one point.
    Hmm.. What i have understood wrong Well it still works fine thought, and i have always used those Numms (:
    But thanks Da Owner ( Sometimes i feel, that i should retire.. )

    ~Home

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

    Default

    Quote Originally Posted by Home View Post
    Well i was not sure is FindColors Scar 3,20 Function or was it SRL Function

    ~Home
    Oh ok, I thought maybe it had to do with some code efficiency thing no one told me about.

    I'll give this a code of yours a try but I'll probably edit parts of it and throw it in my rune crafter.

  7. #7
    Join Date
    Sep 2008
    Location
    Not here.
    Posts
    5,422
    Mentioned
    13 Post(s)
    Quoted
    242 Post(s)

    Default

    Nice work Home.

  8. #8
    Join Date
    Feb 2006
    Posts
    3,044
    Mentioned
    4 Post(s)
    Quoted
    21 Post(s)

    Default

    Quote Originally Posted by IceFire908 View Post
    Oh ok, I thought maybe it had to do with some code efficiency thing no one told me about.

    I'll give this a code of yours a try but I'll probably edit parts of it and throw it in my rune crafter.
    Ye of course.. This was just a test that am i able to do anything on thse days

    What i would to edit:

    Make it more simple ( To FindColor ) Remove useless variables. And voila

    ~Home

  9. #9
    Join Date
    Dec 2008
    Location
    In a galaxy far, far away...
    Posts
    584
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Hey nice btw there is not point for setting Result to false? FindColorsTolerance will return false if it finds no colors right?



    ~NS

  10. #10
    Join Date
    Oct 2007
    Location
    #srl
    Posts
    6,102
    Mentioned
    39 Post(s)
    Quoted
    62 Post(s)

    Default

    Quote Originally Posted by Nadeem View Post
    Hey nice btw there is not point for setting Result to false? FindColorsTolerance will return false if it finds no colors right?
    Either way I believe all Booleans are set to False by default anyways.

    Nice job though Home

  11. #11
    Join Date
    Jan 2008
    Location
    Ontario, Canada
    Posts
    7,805
    Mentioned
    5 Post(s)
    Quoted
    3 Post(s)

    Default

    Someone remind me and I will rewrite click to continue tomorrow. It currently is really slow.
    Writing an SRL Member Application | [Updated] Pascal Scripting Statements
    My GitHub

    Progress Report:
    13:46 <@BenLand100> <SourceCode> @BenLand100: what you have just said shows you 
                        have serious physchological problems
    13:46 <@BenLand100> HE GETS IT!
    13:46 <@BenLand100> HE FINALLY GETS IT!!!!1

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

    Default

    Really slow/not working for me
    +1 for you for going to make it!
    Ce ne sont que des gueux


  13. #13
    Join Date
    Mar 2007
    Posts
    4,810
    Mentioned
    3 Post(s)
    Quoted
    3 Post(s)

    Default

    Quote Originally Posted by Nava2 View Post
    Someone remind me and I will rewrite click to continue tomorrow. It currently is really slow.
    Is that because it loads a bitmap mask every time?
    If it is, why not include it in SetupSRL;

    Great Work Home - The more you do the better you get.

  14. #14
    Join Date
    Feb 2006
    Posts
    3,044
    Mentioned
    4 Post(s)
    Quoted
    21 Post(s)

    Default

    Well edited and fixed everything to be more simple yet more effective

    ~Home

    P.s First post..

  15. #15
    Join Date
    Dec 2008
    Location
    In a galaxy far, far away...
    Posts
    584
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Hey,

    Why don't you try something like this:

    SCAR Code:
    function ClickToContinue(Click, Wait: Boolean): Boolean;
    begin
      Result := GetColor(629, 649) <> 2370867;
      if (Result and Click) then
      begin
        Mouse(218 + Random(137), 464 + Random(4), 0, 0, true);
        if Wait then ChatWait;
      end;
    end;

    Im on Ubuntu right now and SCAR doesn't run properly so can't really test it :/



    ~NS

  16. #16
    Join Date
    Sep 2007
    Location
    Michigan
    Posts
    3,862
    Mentioned
    2 Post(s)
    Quoted
    1 Post(s)

    Default

    I don't like Color searching for things used a lot and could mistake something else similar that pops up.
    (Scripts outdated until I update for new SRL changes)
    AK Smelter & Crafter [SRL-Stats] - Fast Fighter [TUT] [SRL-Stats]
    If you PM me with a stupid question or one listed in FAQ I will NOT respond. -Narcle
    Summer = me busy, won't be around much.

  17. #17
    Join Date
    Jul 2007
    Location
    Right now? Chair.
    Posts
    8,488
    Mentioned
    3 Post(s)
    Quoted
    12 Post(s)

    Default

    Quote Originally Posted by Narcle View Post
    I don't like Color searching for things used a lot and could mistake something else similar that pops up.
    still faster than bmps...

    I say FindColorsTolerance in a small area with color count. very accurate and fast.

    ~RM

    I & I know Zion. It is in the spirit, body and mind of every one of us
    RMouse(obj: TMSIObject): boolean;

  18. #18
    Join Date
    Mar 2007
    Posts
    4,810
    Mentioned
    3 Post(s)
    Quoted
    3 Post(s)

    Default

    Quote Originally Posted by Narcle View Post
    I don't like Color searching for things used a lot and could mistake something else similar that pops up.
    Aman, also Nadeem the click to continue text moves about in the chatbox, so your idea wouldn't work

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

    Default

    Couldn't you just use mouse with static coordinates, since (if my memory serves me correctly) it stays in the one place?

    EDIT: Nevermind, i thought you were talking about the click to continue button which is gold and appears as soon as you log into RuneScape...

    Quote Originally Posted by Rasta Magician View Post
    still faster than bmps...

    I say FindColorsTolerance in a small area with color count. very accurate and fast.

    ~RM
    Bitmaps are faster
    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 |

  20. #20
    Join Date
    Sep 2007
    Location
    Michigan
    Posts
    3,862
    Mentioned
    2 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by Dan's The Man View Post
    Couldn't you just use mouse with static coordinates, since (if my memory serves me correctly) it stays in the one place?

    EDIT: Nevermind, i thought you were talking about the click to continue button which is gold and appears as soon as you log into RuneScape...



    Bitmaps are faster
    Only if the Bitmap is preloaded, if its reloaded each time the function is called... I'm sure its slower.
    (Scripts outdated until I update for new SRL changes)
    AK Smelter & Crafter [SRL-Stats] - Fast Fighter [TUT] [SRL-Stats]
    If you PM me with a stupid question or one listed in FAQ I will NOT respond. -Narcle
    Summer = me busy, won't be around much.

  21. #21
    Join Date
    Mar 2007
    Posts
    4,810
    Mentioned
    3 Post(s)
    Quoted
    3 Post(s)

    Default

    Load it in setupsrl?

  22. #22
    Join Date
    Sep 2007
    Location
    Michigan
    Posts
    3,862
    Mentioned
    2 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by NaumanAkhlaQ View Post
    Load it in setupsrl?
    I believe this is avoided for slower computers. Eventually we'd have to many preloaded bitmaps etc. just for the compile... I don't know the exact amount of ram they take up but I'm sure it'll affect performance.

    I think if done right you can just load the bitmap once and use a Global variable to confirm its loaded... We could really use a "IsBitmapLoaded" function of sorts for cases like these.
    (Scripts outdated until I update for new SRL changes)
    AK Smelter & Crafter [SRL-Stats] - Fast Fighter [TUT] [SRL-Stats]
    If you PM me with a stupid question or one listed in FAQ I will NOT respond. -Narcle
    Summer = me busy, won't be around much.

  23. #23
    Join Date
    Jul 2007
    Location
    Right now? Chair.
    Posts
    8,488
    Mentioned
    3 Post(s)
    Quoted
    12 Post(s)

    Default

    Quote Originally Posted by Narcle View Post
    I believe this is avoided for slower computers. Eventually we'd have to many preloaded bitmaps etc. just for the compile... I don't know the exact amount of ram they take up but I'm sure it'll affect performance.

    I think if done right you can just load the bitmap once and use a Global variable to confirm its loaded... We could really use a "IsBitmapLoaded" function of sorts for cases like these.
    Bitmaps.scar then?

    LoadSRLBitmap checks if it is loaded already or not, and now with it being set up with constants it has become extremely easy to just simply add new ones.

    ~RM

    I & I know Zion. It is in the spirit, body and mind of every one of us
    RMouse(obj: TMSIObject): boolean;

  24. #24
    Join Date
    Feb 2006
    Posts
    3,044
    Mentioned
    4 Post(s)
    Quoted
    21 Post(s)

    Default

    Well in my CLicktocontinue it checks are we in conversation ( So it won't mess with normal chat ) And chat mouseBox will move your mouse around chat so it won't be up of click here to continue text ( If mouse is up on that the text will change color )
    A Little explanation.

    ~Home

  25. #25
    Join Date
    Dec 2008
    Location
    In a galaxy far, far away...
    Posts
    584
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by NaumanAkhlaQ View Post
    Aman, also Nadeem the click to continue text moves about in the chatbox, so your idea wouldn't work
    I know that Which is why thats not the color of the text, i took a point from the scroll bar arrow. Because when it asks to continue it does not show the scroll bar, all other times it will show the scroll bar.



    ~NS

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
  •