SRL Archive - General

MMouse help.


Zeta Matt

2013-02-01 11:18:09

I used to use only functions that play sounds and detects colors, but now I want to get more into mouse functions. Since I didn't find anything explaining some variables, I'd like to get some explanation on what is the rx and ry on the function MMouse(x, y, rx, ry: integer). Thanks =)

Sjoe

2013-02-01 11:33:16

Example: MMouse(500, 120, 5, 5)
It will move the mouse to the Point(500,120) With a randomness of x = 5 pixels and y = 5 pixels
So it doesn't always move to the exact spot (sort of antiban)

Gucci

2013-02-01 11:35:25

From: Sjoekeloe
Example: MMouse(500, 120, 5, 5, true)
It will click the Point(500,120) With a randomness of x = 5 pixels and y = 5 pixels
So it doesn't always click the exact spot (sort of antiban)


That's Mouse Sjoe not MMouse ;). But yeah the rx and ry are random pixels to be added or subtracted from where the mouse will be moved

Sjoe

2013-02-01 11:38:14

From: Gucci
That's Mouse Sjoe not MMouse ;). But yeah the rx and ry are random pixels to be added or subtracted from where the mouse will be moved


Editted lol , cheers babe

DannyRS

2013-02-01 11:38:45

From: Gucci
That's Mouse Sjoe not MMouse ;). But yeah the rx and ry are random pixels to be added or subtracted from where the mouse will be moved


Yup, e.g.


MMouse(100,100,5,5);
Click_Mouse2(mouse_left);

Olly

2013-02-01 11:42:59

From: Gucci
That's Mouse Sjoe not MMouse ;). But yeah the rx and ry are random pixels to be added or subtracted from where the mouse will be moved


Actually it only adds :p

Sjoe

2013-02-01 11:48:28

From: Ollybest
Actually it only adds :p


Didn't know about that, so u have to use RandomRange(-5, 5)?

DannyRS

2013-02-01 11:51:40

From: Ollybest
Actually it only adds :p


I always do, because I thought that too,


MMouse(RandomRange(X-5,X+5),RandomRange(Y-5,Y+5),0,0);

But I read the source for MMouse and it did seem to have - stuff but It's all really complicated for me to read as I'm bad at math