SRL Archive - First Scripts

just need a little help plz


corl455

2007-09-19 00:27:34

ok, is there a fuction that will move the mouse and click a spot without using a color likel:
mouse
Mmouse
?
thats more hyman like. like all the srl stuff. PLZ HELP

yes i know i am a noob… :)

IronTeapot

2007-09-19 00:38:12

'Mouse' is the srl function that moves and clicks the mouse more human like. Mmouse just moves without clicking, but both are SRL standard mouse move movers.

MasterKill

2007-09-19 01:13:10

Mouse({x coörd}, {y coörd}, 0, 0, {True/False});

True = leftclick
false = rightclick

the 0's are standing for the random pos..

corl455

2007-09-19 09:00:13

every time i do it without using
if(FindColor(x,y,color1,4,28,517, 336)) then
begin
Mouse(x,y,0,0,true);
end

i get this error

[Runtime Error] : divide by Zero in line 80 in script C:\Program Files\SCAR 3.11\includes\SRL/SRL/Core/Mouse.scar

lolislol

2007-09-19 09:02:40

And please stop calling yourself a noob, you are not. :)

gerauchert

2007-09-19 09:16:17

the divide by 0 error means you didnt put SetupSRL in your main loop.

program New;
begin
SetupSRL;
end.

;)

corl455

2007-09-19 21:26:12

From: gerauchert
the divide by 0 error means you didnt put SetupSRL in your main loop.

program New;
begin
SetupSRL;
end.

;)


ohh, srry i was so stupid! thx, thats also why it wasent finding the mini map icons too

anonymity

2007-09-20 01:56:45

Maybe I just read your question wrong or I don't understand scar well enough….ok I know that I don't understand scar very well at all…

But I thought that if you were looking for a more human like movement then you would use :

MoveMouseSmooth(00,00);
………………………. x , y

The 0's are coordinates(underneath is just showing 'x' and 'y' coordinates). unless you are using scar to search for coordinates and you want the cursor (mouse) to move in a more human like path while searching. That would be a different command I believe.

For now,
anonymity


ps: don't call yourself a n00b