SRL Archive - OSR Help

Converting coordinates received from Simba status bar


ZappyDude

2013-03-24 23:37:33

From what I can tell so far, the mouse coordinates in Simba's status bar are raw client coordinates. However, functions like Mouse and MMouse are expecting some sort of offset coordinates to compensate for the parts of the applet which contain the menu bar etc. How do I convert between the two? Certain things I want to do use constant coordinates with random offsets, since those things never move on the screen. Thanks in advance.

Sawyer

2013-03-24 23:39:22

Subtract 50 from the y value of the coordinates you get from the status bar in Simba.