SRL Archive - OSR Help

'mousebox'


Hadley

2012-05-13 20:45:03

can someone explain how the 'mousebox' function in a script works or link me to an explanation? Would be appreciated!

x[Warrior]x3500

2012-05-13 20:55:44

well the description of it is:

procedure MouseBox(x1, y1, x2, y2: Integer; ClickType: Integer);
Moves mouse into a random position in the box. Clicks if told to.

box, as in (x1,y1) to (x2,y2) clicktype= mouse_Right or mouse_Left

Hadley

2012-05-13 21:08:19

ah i see, i didnt realise the numbers represented x and y. Does simba have a tool that where i can get the x,y numbers? thanks warrior.

nickrules

2012-05-13 21:13:34

From: Hadley
ah i see, i didnt realise the numbers represented x and y. Does simba have a tool that where i can get the x,y numbers? thanks warrior.


use the target-thingy on SIMBA, drag it over the client. Then, in the bottom left corner, it will display the mouses X and Y coordinates (relative to the client).

Hadley

2012-05-13 21:29:40

thanks guys!

Rich

2012-05-14 04:31:31

From: x[Warrior]x3500
clicktype= mouse_Right or mouse_Left
And mouse_Move.

reyrey389

2015-03-21 20:31:28

this is outdated as i can't see mousebox as a command anymore. how would I still use this function ?

Justin

2015-03-21 20:57:28

From: reyrey389
this is outdated as i can't see mousebox as a command anymore. how would I still use this function ?



program MouseBoxExample;
{$I SRL-6/SRL.simba}

var TheBox : TBox;

begin
SetupSRL;
TheBox := IntToBox(100, 100, 300, 300);
MouseBox(TheBox,mouse_Move);
MouseBox(mainScreen.getBounds(), mouse_Right);
MouseBox(IntToBox(100,100,200,200), mouse_Left);
end.