Log in

View Full Version : MouseBox



Shuttleu
06-10-2008, 06:11 PM
ok well i have searched for this but cant find it anywhaer

i am having problems with the function MouseBox
i use it like this
MouseBox(MSX1, MSY1, MSX2, MSY2, True);
but it always gives me a type mismatch in script error
i have looked at the srl manual and mouse.scar but i cant find anyting wrong

please help me

thanks in advance

rep++ for anyone who helps :)

~shut

skilld u
06-10-2008, 06:15 PM
should be:

MouseBox(MSX1, MSY1, MSX2, MSY2, 1); //left click.

MouseBox(MSX1, MSY1, MSX2, MSY2, 2); // right click.

MouseBox(MSX1, MSY1, MSX2, MSY2, 3); //moves the mouse.

Shuttleu
06-10-2008, 06:22 PM
ohhh so thats what it means
in mouse.scar it just says
{************************************************* ******************************
procedure MouseBox(x1, y1, x2, y2: Integer; Click:(True, False, None));
By: SKy Scripter and Nielsie95
Description: Moves mouse into a random position in the box. Clicks if told to.
************************************************** *****************************}
it doesnt say anything about any numbers for right click or left click :p

o well thank you

rep ++

~shut

Zezi
06-10-2008, 09:57 PM
I had the exact same problem, i saw an example with 3, so i kept it at that :P THen did getmousepos XDDD It worked but,yea, thanks for explaining this to me also ;p XD