Results 1 to 12 of 12

Thread: i must be really bored. mouse procedures!

  1. #1
    Join Date
    May 2007
    Location
    knoxville
    Posts
    2,873
    Mentioned
    7 Post(s)
    Quoted
    70 Post(s)

    Default i must be really bored. mouse procedures!

    SCAR Code:
    {*******************************************************************************
    procedure ClickWait(x, y, rx, ry, time, rtime: integer; left: boolean);
    By: akwardsaw
    Description:what it does is holds down the button(left or right) for the specified time. to act like your either to lazy to pick your finger up or your about to drag something but change your mind
    *******************************************************************************}

    procedure ClickWait(x, y, rx, ry, time, rtime: integer; left: boolean);
    var a, b: integer;
    begin
      mmouse(x, y, rx, ry);
      getmousepos(a, b);
      holdmouse(a, b, left);
      wait(time + random(rtime));
      releasemouse(a, b, left);
    end;

    {*******************************************************************************
    procedure ClickMistake(x, y, rx, ry: integer; left: boolean);
    By: akwardsaw, took some stuff from the mouse procedure
    Description:it "accidentally" clicks the wrong mouse button, and corrects itself
    *******************************************************************************}

    procedure ClickMistake(x, y, rx, ry: integer; left: boolean);
    var
      a, b, c: Integer;
    begin
      MMouse(x, y, rx, ry);
      Wait(60 + Random(30));
      GetMousePos(b, c);
      if left then
      begin
        mouse(b, c, 0, 0, false)
        for C := 0 to 3 do
          Wait(20 + Random(30));
        mmouse(b, c, (25 + random(5)), (25 + random(5)));
        mouse(b, c, 0, 0, left);
      end else
      begin
        mouse(b, c, 0, 0, true);
        wait(10 + random(50));
        mouse(b, c, 0, 0, left);
      end;
    end;

    {*******************************************************************************
    procedure ChangeMindMMouse(x, y, rx, ry, time, rtime: integer);
    By: akwardsaw
    Description: it moves the mouse, but changes its mind and moves back to around its original spot
    *******************************************************************************}

    procedure ChangeMindMMouse(x, y, rx, ry, time, rtime: integer);
    var a, b: integer;
    begin
      getmousepos(a, b);
      mmouse(x, y, rx, ry);
      wait(time + random(rtime));
      mmouse(a, b, 10, 10);
    end;

    im not sure if these belong in mouse or antiban, nor am i sure if these are already in srl(didnt find in mouse or antiban)

    and like i said, i was bored when i made these
    Last edited by Awkwardsaw; 07-04-2009 at 02:15 PM.
    <TViYH> i had a dream about you again awkwardsaw
    Malachi 2:3

  2. #2
    Join Date
    May 2007
    Location
    Some where fun.
    Posts
    2,891
    Mentioned
    1 Post(s)
    Quoted
    5 Post(s)

    Default

    Quote Originally Posted by akwardsaw View Post
    SCAR Code:
    {*******************************************************************************
    procedure ClickWait(x, y, rx, ry, time, rtime: integer; left: boolean);
    By: akwardsaw
    Description:what it does is holds down the button(left or right) for the specified time. to act like your either to lazy to pick your finger up or your about to drag something but change your mind
    *******************************************************************************}

    procedure ClickWait(x, y, rx, ry, time, rtime: integer; left: boolean);
    var a, b: integer;
    begin
      mmouse(x, y, rx, ry);
      getmousepos(a, b);
      holdmouse(a, b, left);
      wait(time + random(rtime));
      releasemouse(a, b, left);
    end;

    {*******************************************************************************
    procedure ClickMistake(x, y, rx, ry: integer; left: boolean);
    By: akwardsaw, took some stuff from the mouse procedure
    Description:it "accidentally" clicks the wrong mouse button, and corrects itself
    *******************************************************************************}

    procedure ClickMistake(x, y, rx, ry: integer; left: boolean);
    var
      a, b, c: Integer;
    begin
      MMouse(x, y, rx, ry);
      Wait(60 + Random(30));
      GetMousePos(b, c);
      if left then
      begin
        mouse(b, c, 0, 0, false)
        repeat
          Wait(20 + Random(30));
          c := c + 1;
        until (c > 4);
        mmouse(b, c, (25 + random(5)), (25 + random(5)));
        mouse(b, c, 0, 0, left);
      end else
      begin
        mouse(b, c, 0, 0, true);
        wait(10 + random(50));
        mouse(b, c, 0, 0, left);
      end;
    end;

    {*******************************************************************************
    procedure ChangeMindMMouse(x, y, rx, ry, time, rtime: integer);
    By: akwardsaw
    Description: it moves the mouse, but changes its mind and moves back to around its original spot
    *******************************************************************************}

    procedure ChangeMindMMouse(x, y, rx, ry, time, rtime: integer);
    var a, b: integer;
    begin
      getmousepos(a, b);
      mmouse(x, y, rx, ry);
      wait(time + random(rtime));
      mmouse(a, b, 10, 10);
    end;

    im not sure if these belong in mouse or antiban, nor am i sure if these are already in srl(didnt find in mouse or antiban)

    and like i said, i was bored when i made these
    I like them, try making a procedure that moves a mouse to far, but lets say its moving from the left to right, then have it move to more then right then its suppose to , then fix it self. IT would be difficult to make it look human but would work great.

  3. #3
    Join Date
    May 2007
    Location
    knoxville
    Posts
    2,873
    Mentioned
    7 Post(s)
    Quoted
    70 Post(s)

    Default

    i'm pretty sure it has already been made, but hasnt been added. like it miss clicks and corrects itself. if not, i might be able to make a simple(yet not as good, mabey) version real fast and let us dwell on it :P

    edit: MissMouse found it :P

    also my little scrap up:
    SCAR Code:
    program New;
    {.include SRL/SRL.scar}

    procedure MissMouse(x, y, rx, ry, mx, my: integer; left: boolean);
    begin
      mmouse(x, y, (rx + mx), (ry + my));
      wait(1 + random(50));
      mmouse(x, y, rx, ry);
    end;

    begin
      setupsrl;
      missmouse(300, 300, 10, 10, 50, 50, true)
    end.

    try it out :P tbh, its not "too" human like, but it misses the target and goes back to it. i modded it to mmouse to test it.

    and, laptopmouse does the same thing
    Last edited by Awkwardsaw; 07-04-2009 at 12:58 PM.
    <TViYH> i had a dream about you again awkwardsaw
    Malachi 2:3

  4. #4
    Join Date
    Jan 2008
    Location
    Ontario, Canada
    Posts
    7,805
    Mentioned
    5 Post(s)
    Quoted
    3 Post(s)

    Default

    I like the Change Mind thing
    Writing an SRL Member Application | [Updated] Pascal Scripting Statements
    My GitHub

    Progress Report:
    13:46 <@BenLand100> <SourceCode> @BenLand100: what you have just said shows you 
                        have serious physchological problems
    13:46 <@BenLand100> HE GETS IT!
    13:46 <@BenLand100> HE FINALLY GETS IT!!!!1

  5. #5
    Join Date
    May 2007
    Location
    knoxville
    Posts
    2,873
    Mentioned
    7 Post(s)
    Quoted
    70 Post(s)

    Default

    thanks nava

    also, thanks for the people who gave me teh cup =D avy now pl0x?
    <TViYH> i had a dream about you again awkwardsaw
    Malachi 2:3

  6. #6
    Join Date
    Oct 2007
    Location
    http://ushort.us/oqmd65
    Posts
    2,605
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    SCAR Code:
    repeat
          Wait(20 + Random(30));
          c := c + 1;
        until (c > 4);
    to
    SCAR Code:
    for C := 0 to 3 do
      Wait(20 + Random(30));
    I do visit every 2-6 months

  7. #7
    Join Date
    May 2007
    Location
    knoxville
    Posts
    2,873
    Mentioned
    7 Post(s)
    Quoted
    70 Post(s)

    Default

    oo you can do that? i always thought for-to-do was just for arrays
    Last edited by Awkwardsaw; 07-04-2009 at 01:49 PM.
    <TViYH> i had a dream about you again awkwardsaw
    Malachi 2:3

  8. #8
    Join Date
    Oct 2007
    Location
    http://ushort.us/oqmd65
    Posts
    2,605
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    nope they work for anything
    I do visit every 2-6 months

  9. #9
    Join Date
    May 2007
    Location
    knoxville
    Posts
    2,873
    Mentioned
    7 Post(s)
    Quoted
    70 Post(s)

    Default

    alright, gonna change that now then
    <TViYH> i had a dream about you again awkwardsaw
    Malachi 2:3

  10. #10
    Join Date
    Feb 2007
    Location
    Access Violation at 0x00000000
    Posts
    2,865
    Mentioned
    3 Post(s)
    Quoted
    18 Post(s)

    Default

    SCAR Code:
    Program New;
    {.include SRL/SRL.scar}

    Procedure MissMouse(x, y, rx, ry, mx, my, m_Randomness : Integer; Left : Boolean);
    Begin
      If (m_Randomness > mx) Or (m_Randomness > my) Then
      Begin
        WriteLn('MissMouse \ ERROR -> Randomness can''t be bigger than mx/my.');
        Exit;
      End;
      mx := RandomRange(mx - m_Randomness, mx + m_Randomness);
      my := RandomRange(my - m_Randomness, my + m_Randomness);
      MMouse(x, y, (rx + mx), (ry + my));
      Wait(1 + random(50));
      MMouse(x, y, rx, ry);
    End;

    Begin
      SetupSRL;
      Repeat
        {         x    y    rx ry mx   my   m_Rnd Left}
        MissMouse(300, 300, 5, 5, 50, 50, 45, True);
        Wait(500);
      Until(IsFKeyDown(11));
    End.

    Check that out. Added randomness to the missing.
    Ce ne sont que des gueux


  11. #11
    Join Date
    Oct 2008
    Location
    behind you!
    Posts
    1,688
    Mentioned
    2 Post(s)
    Quoted
    40 Post(s)

    Default

    Your doing better and better each time, i like seeing people contributing to SRL....

    Wanna do something together someday ?
    Hi

  12. #12
    Join Date
    May 2007
    Location
    knoxville
    Posts
    2,873
    Mentioned
    7 Post(s)
    Quoted
    70 Post(s)

    Default

    Quote Originally Posted by Floor66 View Post
    SCAR Code:
    Program New;
    {.include SRL/SRL.scar}

    Procedure MissMouse(x, y, rx, ry, mx, my, m_Randomness : Integer; Left : Boolean);
    Begin
      If (m_Randomness > mx) Or (m_Randomness > my) Then
      Begin
        WriteLn('MissMouse \ ERROR -> Randomness can''t be bigger than mx/my.');
        Exit;
      End;
      mx := RandomRange(mx - m_Randomness, mx + m_Randomness);
      my := RandomRange(my - m_Randomness, my + m_Randomness);
      MMouse(x, y, (rx + mx), (ry + my));
      Wait(1 + random(50));
      MMouse(x, y, rx, ry);
    End;

    Begin
      SetupSRL;
      Repeat
        {         x    y    rx ry mx   my   m_Rnd Left}
        MissMouse(300, 300, 5, 5, 50, 50, 45, True);
        Wait(500);
      Until(IsFKeyDown(11));
    End.

    Check that out. Added randomness to the missing.
    i like it thanks

    Quote Originally Posted by tikky
    Your doing better and better each time, i like seeing people contributing to SRL....

    Wanna do something together someday ?
    sure :P
    <TViYH> i had a dream about you again awkwardsaw
    Malachi 2:3

Thread Information

Users Browsing this Thread

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

Posting Permissions

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