Results 1 to 9 of 9

Thread: [REQ] Mouse in box

  1. #1
    Join Date
    Sep 2006
    Posts
    5,219
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default [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.

  2. #2
    Join Date
    Feb 2006
    Posts
    406
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    procedure MouseBox(xs, ys, xe, ye: Integer; click: Integer);

    lol

  3. #3
    Join Date
    Nov 2006
    Posts
    120
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    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

  4. #4
    Join Date
    Oct 2006
    Posts
    500
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    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?

  5. #5
    Join Date
    Sep 2006
    Posts
    5,219
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    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.

  6. #6
    Join Date
    Oct 2006
    Posts
    500
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    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?

  7. #7
    Join Date
    Sep 2006
    Posts
    5,219
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    Box is like
    x1,y1---------------------------------------
    |................................................. .....|
    |................................................. .....|
    |................................................. .....|
    |................................................. .....|
    |................................................. .....|
    |................................................. .....|
    ----------------------------------------x2,y2

    And smoother as in 1 continous line

    rename attachment as .bmp

  8. #8
    Join Date
    Oct 2006
    Posts
    500
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    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)

  9. #9
    Join Date
    Sep 2006
    Posts
    5,219
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    yea like that

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. I'm a Mouse!
    By mickeymouse in forum Who Are You ? Who ? Who ?
    Replies: 3
    Last Post: 12-12-2008, 04:21 PM
  2. mouse help.
    By Junior in forum OSR Help
    Replies: 9
    Last Post: 02-04-2007, 09:24 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •