SRL Archive - Help and Support

Help with Mouse movements(i hope this will be my last help)


ub3r |<1||3r*1337*

2006-04-12 07:27:21

ok, I know now that
clickmouse(x,y,True)
will get me banned, so, i'm trying to use
Mouse(x,y,1,1,True)
but it just says
Unknown Identifier
for the 'Mouse'. I tryed clickhuman, still came up with that error, somebody please help me

XxKanexX

2006-04-12 07:29:38

Have you declared x and y?


var
x, y: Integer;
;)

ub3r |<1||3r*1337*

2006-04-12 07:34:29

yep, like i always do. or i sometimes do
clickmouse(123,123,True)
or
Mouse(123,123,1,1,True)
But I keep getting an Unknown identifier error for 'Mouse'.

inferno

2006-04-12 07:41:41

Have you actually included the include and put SetUpSRL; ? If you have then post the script so we can have a look at it for you ;)

Also, SRL doesn't have ClickHuman so that would be why that doesn't work for you. You'd need to put that into your script yourself.

P.s. Kane, how have you managed to get 717 posts :eek:

ub3r |<1||3r*1337*

2006-04-12 07:46:58

ok then, just let me create my next script that i was planning to make,:p . just wanted to know the mouse commands, but i'll post a script when i make one.

and what is MMouse? that doesnt work for me either.

Jagex_Fagex

2006-04-12 08:06:39

MMouse is like Move mouse, so

MoveMouse(x+3, y+3) or
MoveMouse(x+random(3), y+random(3))

is the same as

MMouse(x, y, 3, 3);

:)

XxKanexX

2006-04-12 08:41:34

From: inferno
Have you actually included the include and put SetUpSRL; ? If you have then post the script so we can have a look at it for you ;)

Also, SRL doesn't have ClickHuman so that would be why that doesn't work for you. You'd need to put that into your script yourself.

P.s. Kane, how have you managed to get 717 posts :eek:

By helping all i damn well can ;)

<3 SRL.

ub3r |<1||3r*1337*

2006-04-12 16:11:57

omg, i keep getting this error still… unknown identifier… i'll send a video soon

EDIT: video keeps screwing up! i'll just have to say this…

it always says unknown identifier 'MMouse' and for 'Mouse' and now, when i put SetupSRL; in my main loop, it says unknown identifier for it!

WhiteShadow

2006-04-12 18:52:00

From: ub3r |<1||3r
omg, i keep getting this error still… unknown identifier… i'll send a video soon

EDIT: video keeps screwing up! i'll just have to say this…

it always says unknown identifier 'MMouse' and for 'Mouse' and now, when i put SetupSRL; in my main loop, it says unknown identifier for it!


Hmm, strange

Maybe it isn't the Mouse part that your doing wrong but the other coding.

Xtra Help Anyways.

Mouse(x, y, 1, 1, true);

Make sure the x, y are declared as variables. the 1, 1, is the random amount of pixels to be off the x, y coords. true = left click.

Maybe you should just post all the code for what your doing.

Jagex_Fagex

2006-04-12 19:00:46

hm, another question have you got {.Include SRL\SRL.scar} at the top of your script?

ub3r |<1||3r*1337*

2006-04-13 19:25:01

yep, i do
(mabye my scar is messed up?)

Sdcit

2006-04-13 19:36:20

Remember, x and y are already in Global . scar
Try


program New;
{.include SRL\SRL.scar}
begin
SetUpSRL
GetClientDimensions( x, y );
repeat
Benmouse:=False
Mouse( Random( x ), Random( y ), 5, 5, true )
until False
end.

To see if it works there :D

ub3r |<1||3r*1337*

2006-04-13 19:54:14

holy crap! yes that worked, but closed almost all my windows!!! ok, that worked but how did it work?

Sdcit

2006-04-13 20:14:52

show us how you tried to use it?

ub3r |<1||3r*1337*

2006-04-13 20:29:44

ok this is how i would do it…




program whatever;
{.Include\SRL\SRL.scar}

procedure blah;
begin
MMouse(300,300,2,2)
end;

Begin
SetupSRL;
blah;
End.


oops

Sdcit

2006-04-13 20:41:22

{.Include\SRL\SRL.scar}

WRONG

{.Include SRL\SRL.scar}
RIGHT

ub3r |<1||3r*1337*

2006-04-13 20:53:04

holy shit! lol, i was fucked up big time. thank you for pointing that out.

off-topic= by the way Kane, nice DTM tut, helped me

thank you so much!!!!!!! you saved my scripting!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! thank you!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! thank you!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Jagex_Fagex

2006-04-14 20:08:03

lol, i did ask do you have {.Include SRL\SRL.scar} at the top of your script ;)