-
[REQ] Mouse in box
I need someone to write a procedure that moves the mouse around randomly in a box defined in the parameters, until a global boolean is true, like a bored human would. If you can't do the boolean thing, then just time in ms. Will be used in something very cool, you'll of course be in he credits. Dinner time, I'll explain more when I get back.
-
procedure MouseBox(xs, ys, xe, ye: Integer; click: Integer);
lol
-
procedure MouseBox(xs, ys, xe, ye: Integer; click: Integer);
By: XxKanexX
Description:
Moves mouse into a random position in the box. Clicks if told to.
like this one? it's in MouseFlag. I can make you one if you really want to
-
I made one. It moves the mouse in the client (tell me if it does what you want)
Code:
procedure boxmouse(LastingTime:integer);
var
Width, Height,LT: Integer;
StartTime: Integer;
begin
LT:=LastingTime;
GetClientDimensions(Width, Height);
StartTime:= GetTickCount;
repeat
MoveMouseSmoothEx(Random(Width),Random(Height),100,100,30,20,10);
until(GetTickCount - StartTime > LT);
end;
Is that what you mean?
-
masq and ransom, that moves the mouse to a spot. I mean move around randomly, like make a scribble, I'll attach a picture soon.
r!ch!e, yea that's kinda what I meant, except confined to a box, and smoother.
-
i have a few questions
1) is the box the client? or a specified box?
2)By 'Smoother' do you mean less detectable, more curved lines, or...what?
-
Box is like
x1,y1---------------------------------------
|................................................. .....|
|................................................. .....|
|................................................. .....|
|................................................. .....|
|................................................. .....|
|................................................. .....|
----------------------------------------x2,y2
And smoother as in 1 continous line
rename attachment as .bmp
-
client dimensions are easy.
or
would a procedure where you place the co-ords of the box be alright.
e.g
boxmouse(x1,y1,x2,y2,lastingtime : integer);
Also the bitmap you attatched doesnt work,display (wotever you want to call it)
-