Results 1 to 6 of 6

Thread: Move the mouse random

  1. #1
    Join Date
    Apr 2007
    Posts
    57
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Move the mouse random

    Hi i'm making a powerminer but i have a problem.
    When it clicks on a rock it waits until the flag is gone and then mines the rock.
    Isn't there any procedure to let my mouse move randomely until the flag is gone to be more undetectable??

    Thx anyway :d

  2. #2
    Join Date
    Apr 2007
    Location
    UK
    Posts
    2,295
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    repeat
      c:=c+1;
      wait(100+random(300));
      MMouse(MSX1, MSY1, MSX2, MSY2);
    until(Not FlagPresent) or (c>20);

    Repeats wait 100+ random 300 until FlagPresent is false. Or until c is greater than 20 (failsafe)
    Also moves the mouse randomly around the screen.

    Change the wait time else it is going to move the mouse around too fast.

    Rogeruk's Al-Kharid Tanner V1.1 [Released]
    Rogeruk's Barbarian Crafter [Coming Soon]
    Rogeruk's Guild Fisher [Coming Soon]
    !! - Taking Requests - !!

  3. #3
    Join Date
    Mar 2007
    Location
    Netherlands->Amersfoort.
    Posts
    1,615
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    MMouse(MSX1, MSY1, MSX2, MSY2);?

    SCAR Code:
    SleepAndMoveMouse(1000);
    will move the mouse around the screen like a bored human.
    1000 = amount of milliseconds to move the mouse.

  4. #4
    Join Date
    Apr 2007
    Location
    UK
    Posts
    2,295
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    MMouse(MSX1, MSY1, MSX2, MSY2);

    Works great. Use it in my oak banker.

    Rogeruk's Al-Kharid Tanner V1.1 [Released]
    Rogeruk's Barbarian Crafter [Coming Soon]
    Rogeruk's Guild Fisher [Coming Soon]
    !! - Taking Requests - !!

  5. #5
    Join Date
    Apr 2007
    Posts
    57
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thank you verry much!!!

  6. #6
    Join Date
    Mar 2007
    Location
    Netherlands->Amersfoort.
    Posts
    1,615
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by rogeruk View Post
    MMouse(MSX1, MSY1, MSX2, MSY2);

    Works great. Use it in my oak banker.
    lol. didn't knew what it did. but it look pretty funny
    SCAR Code:
    program New;
    {.include srl/srl.scar}
    begin
      setupsrl
      repeat;  
        MMouse(MSX1, MSY1, MSX2, MSY2);
      until(false);
    end.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. How to make the mouse move.
    By BazzBarrett in forum Delphi/FPC Help and Tutorials
    Replies: 1
    Last Post: 12-03-2008, 10:01 AM
  2. Mouse Doesnt Move
    By Nite Elf in forum OSR Help
    Replies: 12
    Last Post: 03-19-2008, 12:05 AM
  3. best mouse move thing...
    By asdfasdfasdf in forum OSR Help
    Replies: 3
    Last Post: 12-18-2007, 03:09 AM
  4. what mouse move is best
    By yanix in forum OSR Help
    Replies: 11
    Last Post: 07-31-2007, 06:58 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
  •