SRL Archive - RS3 Help

Is there a SRL function or procedure for chat tabs?


Brose

2014-11-26 10:00:57

Say I am in private chat tab. I want to select general chat tab. Then scroll up a few times. Then scroll down a few times and select back the private chat tab.

Is there a SRL function / procedure for selecting those chattabs or do I need to create my own tbox / mousebox?

The 2nd question relates to the mouse scroll function

I think the syntax is mousescroll (pnt, integer, boolean). Must it be only a single point? How do i random get my mouse into the general vicinity of the chatbox?

serajin

2014-11-26 10:08:14

I'm not sure on the general chat tab, as I am at work. But for the general vicinity of the chatbox, you could probably do something like mouseBox(chatBox.getBounds, MOUSE_MOVE);

That should move your mouse 'somewhere' within the chatbox.

Then once you are there, you can get the mouse position, using the function which I forget the syntax to…which will give you a tPoint, to pass into mouseScroll.

Brose

2014-11-28 10:47:19

From: serajin
I'm not sure on the general chat tab, as I am at work. But for the general vicinity of the chatbox, you could probably do something like mouseBox(chatBox.getBounds, MOUSE_MOVE);

That should move your mouse 'somewhere' within the chatbox.

Then once you are there, you can get the mouse position, using the function which I forget the syntax to…which will give you a tPoint, to pass into mouseScroll.


I see. Thank you. I am very interested in that syntax which will get me my mouse position as a Tpoint.

KeepBotting

2014-11-28 11:54:32

From: Brose
I see. Thank you. I am very interested in that syntax which will get me my mouse position as a Tpoint.


This might be what you're looking for

function getMousePos2():TPoint; //returns the mouse position as a TPoint
var
x, y:integer;
begin
getMousePos(x, y);
writeLn('Mouse position: {X = ' + toStr(x) + ', Y = ' + toStr(y) + '}' );
result := point(x, y);
end;

bonsai

2014-11-28 11:57:32

From: Brose
I see. Thank you. I am very interested in that syntax which will get me my mouse position as a Tpoint.


You can use GetMousePos(x,y) to get the mouse position. x and y are 'var' so when you pass them in they will change to the current mouse position.

This function is part of the base simba program. Although the docs are wierd most of the info is in there :)

You can find it if you clear the script box in simba and enter "mouse" into the box under the function list.