Results 1 to 6 of 6

Thread: Timed Clicker

  1. #1
    Join Date
    Nov 2011
    Posts
    2
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Timed Clicker

    I need help making a script that clicks a color if found every 30 seconds.
    I searched and found something so this is my current script, it just holds the mouse in a certain place and doesn't actually click anything.

    Code:
    program Colour;
    {.include SRL/SRL.simba}
    var
    x, y : integer;
    begin
    If FindColorTolerance(x, y, 7422390, 0, 0, 772, 502, 35) Then
    Mouse(x, y, 1, 1, True);
    wait(30000);
    end.
    Help?

    I also recieve the error
    Code:
    [Hint] C:\Simba\Includes\SRL/SRL/core/animation.simba(257:3): Variable 'X' never used at line 256
    [Hint] C:\Simba\Includes\SRL/SRL/core/animation.simba(257:3): Variable 'Y'
    every time i compile it

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

    Default

    You need to use loops,

    Simba Code:
    program Colour;
    {.include SRL/SRL.simba}

    const
      count = 100;// how many times to check. this will make the script loop 100 times
    var
    x, y, i : integer;
    begin
      repeat
        If FindColorTolerance(x, y, 7422390, 0, 0, 772, 502, 35) Then
          Mouse(x, y, 1, 1, True);
        wait(30000);
        inc(i);
      until i > count;
    end.

    also that's not an error, some silly dev forgot to remove those variables before committing to the repository
    <TViYH> i had a dream about you again awkwardsaw
    Malachi 2:3

  3. #3
    Join Date
    Nov 2011
    Posts
    2
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    it's functional but the mouse speed is ridiciously slow, you can see it move every pixel... How do i speed that up to make it almost instant?

    nvm added a line.
    Last edited by Magic Oreo; 05-16-2012 at 05:03 AM.

  4. #4
    Join Date
    Mar 2012
    Location
    Color :D
    Posts
    938
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Did you setupsrl?

  5. #5
    Join Date
    Oct 2011
    Location
    Australia, Vic
    Posts
    1,517
    Mentioned
    2 Post(s)
    Quoted
    120 Post(s)

    Default

    Quote Originally Posted by Magic Oreo View Post
    it's functional but the mouse speed is ridiciously slow, you can see it move every pixel... How do i speed that up to make it almost instant?
    Add this to your script setup:
    Simba Code:
    MouseSpeed:= 35;
    You may need to take out the ":" for it to compile.

  6. #6
    Join Date
    Feb 2012
    Posts
    170
    Mentioned
    0 Post(s)
    Quoted
    6 Post(s)

    Default

    Quote Originally Posted by CephaXz View Post
    Did you setupsrl?
    This is undoubtedly your problem. either that or you really messed with your mousespeed somehow. which doesn't seem possible. try setupsrl.

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
  •