Results 1 to 5 of 5

Thread: TUT - Finding and clicking chatbox widgets!

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

    Default TUT - Finding and clicking chatbox widgets!

    Hey guys, today i'm writing my first tutorial.
    We'll go over how to choose options in the chatbox.

    For example -


    We want it to choose the orb!

    There are two main types of choosing items in the chatbox.
    DTMs
    MouseBox

    MouseBox method
    First of all, we're going to want to get the object we want to click into the

    main screen.

    All we have to do is MouseBox the arrow.
    Now this method isn't very efficient as we'll have to call this everytime we

    start the script.



    We'll call a simple MouseBox -

    Simba Code:
    MouseBox(495,410,507,453,3);
    Now what it does -

    MouseBox(495,410,507,453,3);

    The bolded part is the first POINT of the box that you want to make.


    MouseBox(495,410,507,453,3);

    The bolded part is the second POINT of the box that you want to make.


    MouseBox(495,410,507,453,3);

    Lastly, the 3 is a mouse_Move function, which moves but not clicks the specified

    box.


    After, we'll have this.



    Now again, it's a simple matter of MouseBoxing it.





    Simba Code:
    MouseBox(266,412,304,441,1);
    Simple stuff, only change is 1, which moves and clicks at the same time.

    And we're done! Now add a wait/until, static wait or anything!


    DTM method
    First off, we'll make a DTM of the Orb



    Simba Code:
    DTM := DTMFromString

    ('mlwAAAHicY2dgYLjAyMBwEYivA/E1ID4NxKeg7IVAvAKI5wPxTCBeBsQLgHgREHu4uwJ1M2HFRgy4A

    SMeDAUAQzsLUQ=='
    );

    Our DTM.


    Now all we have to do is find the dtm and click on it

    Simba Code:
    if FindDTM(DTM,x,y,MCX1,MCY1,MCX2,MCY2) then
      Mouse(x,y,10,10,True);
    Make sure its MC! MC stands for Main Chatbox!
    You must use it if you do it like this!


    And we're done!

    DTM = Much more efficient.




    This is really simple to use so go ahead and try it out!

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

    Default

    Nice simple tut, I'd add how to do it with FindText
    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.


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

    Default

    Quote Originally Posted by Kyle Undefined View Post
    Nice simple tut, I'd add how to do it with FindText

    Oh! Forgot about this!

  4. #4
    Join Date
    Dec 2007
    Posts
    289
    Mentioned
    4 Post(s)
    Quoted
    86 Post(s)

    Default

    Quote Originally Posted by Kyle Undefined View Post
    Nice simple tut, I'd add how to do it with FindText
    Would FindText be faster than a DTM?

  5. #5
    Join Date
    Feb 2012
    Location
    Somewhere, over the rainbow...
    Posts
    2,272
    Mentioned
    3 Post(s)
    Quoted
    45 Post(s)

    Default

    Quote Originally Posted by honeyhoney View Post
    Would FindText be faster than a DTM?
    Depends on the DTM, but generally yes.

    Having said that it's not a bad idea to use both as a failsafe.

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
  •