SRL Archive - OSR Help

Mouse won't click on coordinates?


koryperson

2013-12-20 17:59:30

So I'm just simply trying to close the bank by using Mouse(488, 28, 0, 0, true); and (488,28) being the exact location of the center of the x. For some reason it keeps clicking at about (488,50-60) and in order to get it to click on the point I want, I have to do (488, 0).

Wtf am I doing wrong lol

Hoodz

2013-12-20 18:23:57

From: koryperson
So I'm just simply trying to close the bank by using Mouse(488, 28, 0, 0, true); and (488,28) being the exact location of the center of the x. For some reason it keeps clicking at about (488,50-60) and in order to get it to click on the point I want, I have to do (488, 0).

Wtf am I doing wrong lol

i had this too once on a private server (soulsplit)
be calling this: MouseResetClientArea; and ImageResetClientArea;
dont know where to call it anymore..

koryperson

2013-12-22 14:09:58

So I tried calling those at the beginning of my clicking procedures/functions and it make no difference. In most cases it actually make the clicking even farther off.

If someone knows how to solve this it'll be greatly appreciated, because I have a few scripts I'd like to release but can't until I get these working.

The Mayor

2013-12-22 15:08:58

From: koryperson
So I tried calling those at the beginning of my clicking procedures/functions and it make no difference. In most cases it actually make the clicking even farther off.

If someone knows how to solve this it'll be greatly appreciated, because I have a few scripts I'd like to release but can't until I get these working.


Is this using SMART?

This reminds me of the old Navbar issue (the ads at the top of the screen threw off the coords by 50). I guess an ad hoc fix would be to find the offset of the y coordinate (it looks like it's about +25 from what you said) and just subtract it (488, (28-25)).

koryperson

2013-12-22 16:57:05

From: The Mayor
Is this using SMART?

This reminds me of the old Navbar issue (the ads at the top of the screen threw off the coords by 50). I guess an ad hoc fix would be to find the offset of the y coordinate (it looks like it's about +25 from what you said) and just subtract it (488, (28-25)).


Nah, not using Smart. Just targeting an RSPS client. It only happens sometimes though.

If I subtract 25 from the y coordinate, wouldn't it then not work on other people's clients who don't have this issue?

Justin

2013-12-22 18:18:58

The problem is, you are using SRL-5, that has a -25/-50 offset for the navbar that RuneScape2 had. You will need to remove the function that searches for the navbar and sets the offset.