Results 1 to 3 of 3

Thread: Coordinates

  1. #1
    Join Date
    Mar 2008
    Posts
    38
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Coordinates

    One would think I would be able to extrapolate this information from all of the posts I read but I guess I am simply not very confident that I know what I'm reading so I feel I should just simply ask.

    I have read many tuts and sample scripts, certain methods require you to pass in x and y or TBox, etc. I was wondering if someone could tell me where to find information about the coordinate system used with RS.
    For example:
    Is an x,y of 0,0 the top left corner of the client window?
    What would be the x and y for the bottom right corner?
    Are the coordinates for the Tab area already known ( such as area inside the inventory tab )?
    How about the coordinates for the minimap?
    I was hoping to find a single document that would list all the "knowns" about the coordinates within RS or even if someone has created a unit with constants defined already.

    Thanks

  2. #2
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    5,553
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    MSX1, MSY1, MSX2, MSY2 //main screen
    MIX1, MIY1, MIX2, MIY2 //Inventory
    MCX1, MCY1, MCX2, MCY2  //Chat
    MMX1, MMY1, MMX2, MMY2 //MM(MiniMap)

    SCAR Code:
    If FindColorspiral(X,Y,Color,MSX1, MSY1, MSX2, MSY2) then
    X,Y where coords stored ( you can use it like Mouse(X,y,0,0,true)
    Color the color
    MSX1, MSY1, MSX2, MSY2 main screen


    Hermpie

    edit:
    0,0 is the highest left hook like you said

    X---->
    Y
    l
    l
    l
    v
    ~Hermen

  3. #3
    Join Date
    Jun 2007
    Location
    Wednesday
    Posts
    2,446
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    Just to add onto Hermpie's post - the co-ordinates are based on a graph with a reverse y axis too, so instead of going into negative numbers when you go down, they get bigger (e.g. top left = 0,0 while the bottom left = 0,860) and you will normally use co-ordinates stored with colour or object (FindBmp, FindDTM etc.) finding. If you want to manually choose co-ordinates, you can use the colour picker as it also stores the co-ordinates in the debug box.
    By reading this signature you agree that mixster is superior to you in each and every way except the bad ways but including the really bad ways.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. A Coordinates Clicker
    By Sfts3 in forum OSR Help
    Replies: 5
    Last Post: 10-11-2008, 09:34 PM
  2. DTM at mouseitem coordinates?
    By Mariuswbz in forum OSR Help
    Replies: 6
    Last Post: 08-15-2008, 02:19 PM
  3. Coordinates
    By qweqwe in forum OSR Help
    Replies: 4
    Last Post: 03-01-2007, 03:53 PM
  4. disregarding certain coordinates?
    By omgh4x0rz in forum OSR Help
    Replies: 7
    Last Post: 02-25-2007, 03:25 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
  •