Log in

View Full Version : Mousespeed



rkroxpunk
04-17-2007, 02:19 PM
Ok I know you can change the mousespeed by using Mousespeed:=6 +random(3) or whatever but is there a procedure that will reset the mousespeed back to what it was before u set it or is the only way to make a const of the mousespeed you want it and then set it back to that?

nielsie95
04-17-2007, 02:43 PM
Procedure ProcedureWithChangedMouseSpeed;
var TempMouse: integer;
begin
TempMouse := MouseSpeed;
MouseSpeed := 6 +Random (3)
//Do your thingie here
MouseSpeed := TempMouse;
end;

:)

~alex~
04-17-2007, 02:44 PM
You could make it a variable and then at the start of the script do variable:= mousespeed. then whenever you wanna revert to default speed do mousespeed:=variable.

Damnit nelsie beat me.

nielsie95
04-17-2007, 02:48 PM
Beat you by one minute! :D

rkroxpunk
04-18-2007, 07:34 AM
agh thx.....I am so incredibly stupid that was actually really easy to think of thx :D