PDA

View Full Version : all my scripts lag horribly, why?



bbri06
10-13-2006, 01:51 AM
they all lag....by all i meen all recently i made a script that all it did was move the mouse twice and then repeat. as soon as it got to the repeat BAM lag. lags so bad it cant do anything.

WhiteShadow
10-13-2006, 08:05 AM
they all lag....by all i meen all recently i made a script that all it did was move the mouse twice and then repeat. as soon as it got to the repeat BAM lag. lags so bad it cant do anything.

Try adding waits.
Wait(100);

Very strange that it would lag just for a mousemove though. Post the actual code and maybe we can find something.

frogy
10-13-2006, 01:17 PM
That's very true, just 1 ms of wait makes all the lag in some of my procedures %100 disapeer

I made a paintball game Autoshooter (clicks max ROF on the game [59 balls per second])
and it would lag everything with no wait, but with


program Login-Autoshooer;
var x,y: integer;
begin
GetMousePos(x,y);
repeat
ClickMouse(x,y,true);
Wait(100); // wait 1 for autoshooter
until(false)
end.

It worked great, I actually made a program that autologs you into world 2 by refreshing and waiting untill "World 2" turns from white to green then it clicks it, and It types in your username\pass and uses this code to click the login button until you log in...