Results 1 to 9 of 9

Thread: [RuneScape][SIMBA][SRL] Teleporting with Games Necklace

  1. #1
    Join Date
    Oct 2012
    Location
    Italy
    Posts
    145
    Mentioned
    0 Post(s)
    Quoted
    44 Post(s)

    Question [RuneScape][SIMBA][SRL] Teleporting with Games Necklace

    Hello there,

    I was having problems clicking the "2. Barbarian Outpost" Option after rubbing the Games Necklace with my simba script.
    In fact when the pop up windows opens in the RuneScape Main Screen (MSx1, MSy1, MSx2, MSy2): http://img543.imageshack.us/img543/9932/ocr.png

    I've tried both
    Code:
    FindTextTpaEx(16777215, 11, MSx1, MSy1, MSx2, MSy2, X, Y, 'Barbarian Outpost', UpChars, Nothing);
    and
    Code:
    FindTextTpaEx(16777215, 11, MSx1, MSy1, MSx2, MSy2, X, Y, '2. Barbarian Outpost', UpChars, Nothing);
    before clicking with Mouse_Left at(X, Y) but it doesn't find the text at all..

    What am I doing wrong? How can I fix that?

    The full script is at: http://pastebin.com/DzTcMGiP

    Thanks in advance for the help
    Zorgatone.
    Last edited by Zorgatone; 01-31-2013 at 03:42 PM. Reason: Typed wrong code

  2. #2
    Join Date
    Oct 2012
    Location
    Italy
    Posts
    145
    Mentioned
    0 Post(s)
    Quoted
    44 Post(s)

    Default

    I realized I can use
    Code:
    SendKeys('2', 50, 25);
    but I'm Wondering how to make the
    Code:
    FindTextTpaEx()
    function working... if someones know it will be very helpful for me since I need to use that function for other purpouses too.

    One more question for all of you: How can I be sure about the font, and what are the differences about those? Where can I find all the font types available and how to actually find the correct one to use? Thanks guys!
    Last edited by Zorgatone; 01-31-2013 at 03:43 PM. Reason: no one given

  3. #3
    Join Date
    Nov 2012
    Posts
    2,351
    Mentioned
    55 Post(s)
    Quoted
    603 Post(s)

    Default

    Just click somewhere inside the box?

    MMouse(RandomRange(GreenBoxX1,GreenBoxX2),RandomRa nge(GreenBoxY1,GreenBoxY2),0,0);
    ClickMouse2(mouse_left); - I think thats it?

    If the Font used here is not in simbas font's text will not work, and you need to define a smaller area for it to produce a reliable result
    Last edited by DannyRS; 01-31-2013 at 03:45 PM.


    Programming is like trying keep a wall of shifting sand up, you fix one thing but somewhere else starts crumbling

  4. #4
    Join Date
    Oct 2012
    Location
    Italy
    Posts
    145
    Mentioned
    0 Post(s)
    Quoted
    44 Post(s)

    Default

    Quote Originally Posted by DannyRS View Post
    Just click somewhere inside the box?

    MMouse(RandomRange(GreenBoxX1,GreenBoxX2),RandomRa nge(GreenBoxY1,GreenBoxY2),0,0);
    ClickMouse2(mouse_left); - I think thats it?

    If the Font used here is not in simbas font's text will not work, and you need to define a smaller area for it to produce a reliable result

    Thank you.. I was thinking about that.. But when I pick the (X, Y) Coordinates using the SMART client with the Color Picker, the Y coordinate is shifted of some pixels and it's not accurate... I will try to do that too, because I'm learning Simba and I've made just a couple complete scripts for now.

    I think I picked the correct font because I've tried to open the fonts in the C:/Simba directory to compare with the Screenshot I've posted above.. I'm just wondering why FindText and also ClickText don't work.

    Is there a way to search for the coordinates of a green box like that?

    Thanks again

  5. #5
    Join Date
    Nov 2012
    Posts
    2,351
    Mentioned
    55 Post(s)
    Quoted
    603 Post(s)

    Default

    Quote Originally Posted by Zorgatone View Post
    Thank you.. I was thinking about that.. But when I pick the (X, Y) Coordinates using the SMART client with the Color Picker, the Y coordinate is shifted of some pixels and it's not accurate... I will try to do that too, because I'm learning Simba and I've made just a couple complete scripts for now.

    I think I picked the correct font because I've tried to open the fonts in the C:/Simba directory to compare with the Screenshot I've posted above.. I'm just wondering why FindText and also ClickText don't work.

    Is there a way to search for the coordinates of a green box like that?

    Thanks again
    You need to drag the green target on simba's toolbar onto smart, then subtract 50 from the Y values, the NavBar issue

    There's ways to get the box, but I dont think you would understand the ways yet , Your overcomplicating the tast using text I think, just click the box or press a key

    You can equip the Games necklace then right click it in equipment tab, and use the choseoption include, that's how I normally do it
    Last edited by DannyRS; 01-31-2013 at 04:13 PM.


    Programming is like trying keep a wall of shifting sand up, you fix one thing but somewhere else starts crumbling

  6. #6
    Join Date
    Oct 2012
    Location
    Italy
    Posts
    145
    Mentioned
    0 Post(s)
    Quoted
    44 Post(s)

    Default

    Quote Originally Posted by DannyRS View Post
    You need to drag the green target on simba's toolbar onto smart, then subtract 50 from the Y values, the NavBar issue

    There's ways to get the box, but I dont think you would understand the ways yet , Your overcomplicating the tast using text I think, just click the box or press a key
    I'm using the sendKey now.. I was just curious to learn how to find/click a text on Simba and yes: I've targeted the SMART window with that green target, I know it (I'm not that noob) :P

  7. #7
    Join Date
    Nov 2012
    Posts
    2,351
    Mentioned
    55 Post(s)
    Quoted
    603 Post(s)

    Default

    Quote Originally Posted by Zorgatone View Post
    I'm using the sendKey now.. I was just curious to learn how to find/click a text on Simba and yes: I've targeted the SMART window with that green target, I know it (I'm not that noob) :P
    GetUpTextAtEx

    Is the prefered function for text I believe, but you would need to have something like, If getuptextatex(position color and stuff); = 'text' Then click somewhere


    Programming is like trying keep a wall of shifting sand up, you fix one thing but somewhere else starts crumbling

  8. #8
    Join Date
    Mar 2006
    Location
    Belgium
    Posts
    3,564
    Mentioned
    111 Post(s)
    Quoted
    1475 Post(s)

    Default

    What about making a bitmap of the text?

    Creds to DannyRS for this wonderful sig!

  9. #9
    Join Date
    Oct 2012
    Location
    Italy
    Posts
    145
    Mentioned
    0 Post(s)
    Quoted
    44 Post(s)

    Default

    Quote Originally Posted by Sjoekeloe View Post
    What about making a bitmap of the text?
    I did that too and it worked.

Thread Information

Users Browsing this Thread

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

Tags for this Thread

Posting Permissions

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