View Full Version : mouse moving help
superman1478
08-08-2007, 02:25 AM
Yesterday i started working on a script to pick up snape grass and bank it.
So far i have the script pick up 27 snape grass and stop.
The mouse moves to fast imo. It also moves straight to the color.
So, how would i go about making the mouse move slower and more randomly?
program snapegrabber;
var
x,y: Integer;
i: Integer;
begin
i:= 0;
repeat
i:= i + 1;
FindColor(x,y,5212174,3,51,516,384);
MoveMousesmooth(x,y);
Wait(300);
ClickMouse(x,y,true);
wait(4000);
until(i >= 27);
end.
Sp0rky
08-08-2007, 02:35 AM
BenMouse := True; (more random)
MouseSpeed := Whatever (slower mouse speed, whatever is a number :P)
IEatJ00erBaybees
08-08-2007, 02:49 AM
MoveMouseSpeed = No-No.
Use MMouse(x, y, random-x, random-y);
My suggestion? Read some more tutorials, there's a good one by JAD in the beginner section.
superman1478
08-08-2007, 02:54 AM
program snapegrabber;
var
x,y: Integer;
i: Integer;
begin
BenMouse =: True;
MouseSpeed := 30
i:= 0;
repeat
i:= i + 1;
FindColor(x,y,5014796,3,51,516,384);
MoveMousesmooth(x,y);
Wait(300);
ClickMouse(x,y,true);
wait(3000);
until(i >= 27);
end.
Line 10: [Error] (10:1): Unknown identifier 'BenMouse' in script C:\Documents and Settings\Jake\Desktop\snape grabber.scar
I did something wrong...
MoveMouseSpeed = No-No.
Use MMouse(x, y, random-x, random-y);
My suggestion? Read some more tutorials, there's a good one by JAD in the beginner section.
Ive looked at tuts, but haven't seen any talk about mouse speed or randomness.
Sp0rky
08-08-2007, 03:03 AM
MoveMouseSpeed = No-No.
What?
0z0ne
08-08-2007, 03:06 AM
Set ben mouse true on your Srl settings or put it there manually.
Include the Srl file and use findcolortolerance and mouse(x,y,0,0, true) .
stupedspam
08-08-2007, 03:15 AM
program snapegrabber;
{.include SRL/SRL.scar}
//Srl include...
var
i: Integer;
begin
BenMouse =: True;
MouseSpeed := 30;
i:= 0;
repeat
i:= i + 1;
FindColor(x,y,5014796,3,51,516,384);
MMouse(x,y,1,1); //Srl mouse functions
Wait(300);
if IsUpText('nape') then //looks for text upper left corner
Mouse(x,y,1,1,true);
wait(3000);
until(i >= 27);
end.
Hope this helps, although you should read some more tutorials about Srl on the Srl site...
~Stupedspam
superman1478
08-08-2007, 03:22 AM
program snapegrabber;
{.include SRL/SRL.scar}
//Srl include...
var
i: Integer;
begin
BenMouse =: True;
MouseSpeed := 30;
i:= 0;
repeat
i:= i + 1;
FindColor(x,y,5014796,3,51,516,384);
MMouse(x,y,1,1); //Srl mouse functions
Wait(300);
if IsUpText('nape') then //looks for text upper left corner
Mouse(x,y,1,1,true);
wait(3000);
until(i >= 27);
end.
Hope this helps, although you should read some more tutorials about Srl on the Srl site...
~Stupedspam
Thanks for the help, i appreciate it.
I get an error on line 8.
Line 8: [Error] (14457:10): Assignment expected in script
stupedspam
08-08-2007, 03:26 AM
Just change BenMouse =: True; to BenMouse := True;
Like I said earlier read some beginner tuts and welcome to scripting :D
~Stupedspam
superman1478
08-08-2007, 03:36 AM
Just change BenMouse =: True; to BenMouse := True;
Like I said earlier read some beginner tuts and welcome to scripting :D
~Stupedspam
ok, i will thanks.
Santa_Clause
08-08-2007, 06:48 AM
program snapegrabber;
{.include SRL/SRL.scar}
//Srl include...
var
i: Integer;
begin
BenMouse =: True;
MouseSpeed := 30;
i:= 0;
repeat
i:= i + 1;
FindColorTolerance(x,y,5014796,MSX1,MSY1,MSX2,MSY1 , 10); //Added tolerance because runescape colours change. Also, instead of all the numbers I put the default mainscreen coordinates.
MMouse(x,y,1,1); //Srl mouse functions
Wait(300);
if IsUpTextMulti('nap', 'ape', 'ras') then //Added more uptexts...
begin
GetMousePos(x, y); //Added this...
Mouse(x,y,0,0,true);
wait(900); //3000 was too much..
end;
until(InvFull); //Repeats until the inventory is full, so you always get a full load...
end.
IEatJ00erBaybees
08-08-2007, 03:10 PM
What?
I musta been high or something. I don't know how I pulled that off.
'MoveMouseSmooth' that's what I meant. SORRY!
rotflmfwao
08-08-2007, 08:40 PM
And btw, you prolly wanna add SetupSRL; somewhere.
Korbman
08-08-2007, 08:50 PM
Simple script by nature, but if it gets the job done....;)
Correct me if I'm wrong, but I don't think you'll be running that script over the next day or two because the BenMouse uses the SRL include (stated above), and SRL isn't compatible with the new rs update.
EDIT: oh ok...thanks for that ~alex~
~alex~
08-08-2007, 11:25 PM
Simple script by nature, but if it gets the job done....;)
Correct me if I'm wrong, but I don't think you'll be running that script over the next day or two because the BenMouse uses the SRL include (stated above), and SRL isn't compatible with the new rs update.
Only the interface related functions.
zenma
08-09-2007, 04:09 AM
Only the interface related functions.
kinda offtopic but...i thought the antirandoms needed to be fixed too, or has someone been lying to me...
Powered by vBulletin® Version 4.2.1 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.