SRL Archive - Help and Support

Mouse speed


soccnut

2009-07-18 09:18:19

Im writing a script for external use(non rs) but encounter a problem.

I have tried mouse and mmouse function, but something is wrong with the mouse speed. It runs the script fine but the mouse seems to move 1 pixel by 1 pixel at a very very slow speed.

As the script is not for RS, i did not use SMART and use the drag to client window.

Do i need to specify mouse speed as a variable?

Da 0wner

2009-07-18 09:23:09

Yep.

Set the MouseSpeed variable (integer).

soccnut

2009-07-18 09:44:26

From: Da 0wner
Yep.

Set the MouseSpeed variable (integer).




I get a Duplicate identifier 'MouseSpeed'

Program Random;
{.include srl/srl.scar}

const
Text1 = ('testing 1 2 3');

var
MouseSpeed: 20;

begin

wait(5000+random(500))
mmouse(81, 179,1,1)

TRiLeZ

2009-07-18 09:46:03

MouseSpeed:= 20;
You dont declare as a var because its already declared in srl.

soccnut

2009-07-18 09:50:01

oh ok… thanks solved.

Daniel

2009-07-19 15:05:00

Which game? Because, on most games you will only need to use MoveMouse ;)

Shuttleu

2009-07-19 15:24:37

or you could add setupsrl;
then you wont need to set the mouse speed

~shut