Adblock breaks this site

[SRL4] AutoClicker

Discussion in 'RuneScape Scripts' started by -------owned-------, Sep 20, 2007.

Thread Status:
Not open for further replies.
  1. -------owned-------

    -------owned------- Guru
    Banned

    Joined:
    Jan 27, 2007
    Posts:
    1,225
    Referrals:
    0
    Sythe Gold:
    0
    [SRL4] AutoClicker

    Code:
    program AutoClicker;
    {.include /SRL/SRL.scar}
    var
    x,y,betweenclicks:integer;
    procedure setup;
    begin;
    betweenclicks:=5; //How many seconds between clicks
    // Don't touch \\
    betweenclicks := betweenclicks * 1000;
    end;
    begin
    setup;
    repeat
    GetMousePos(x,y);
    mouse(x,y,1,1,true);
    sleep(betweenclicks + random(50));
    until(isfkeydown(12))
    end.
    
     
  2. Town

    Town Grand Master
    Scar Programmers

    Joined:
    Jan 21, 2007
    Posts:
    3,776
    Referrals:
    3
    Sythe Gold:
    5
    [SRL4] AutoClicker

    Code:
    program AutoClicker;
    {.include /SRL/SRL.scar}
    var
    x,y,betweenclicks:integer;
    
    const
    betweenclicks=5; //How many seconds between clicks
    procedure setup;
    begin
    // Don't touch \\
    betweenclicks := betweenclicks * 1000;
    end;
    begin
    setup;
    repeat
    GetMousePos(x,y);
    mouse(x,y,1,1,true);
    sleep(betweenclicks + random(50));
    until(isfkeydown(12))
    end.
    You probably want to use Wait() instead of Sleep().
     
  3. Runescapian321

    Runescapian321 Active Member

    Joined:
    Sep 19, 2007
    Posts:
    179
    Referrals:
    0
    Sythe Gold:
    0
    [SRL4] AutoClicker

    Failed when compiling
    Line 4: [Error] (14453:1): Duplicate identifier 'x' in script

    I'm a newbie lol how do you fix that?
     
  4. -------owned-------

    -------owned------- Guru
    Banned

    Joined:
    Jan 27, 2007
    Posts:
    1,225
    Referrals:
    0
    Sythe Gold:
    0
    [SRL4] AutoClicker

    Get the newest SRL.

    Can you explain why?
     
  5. Town

    Town Grand Master
    Scar Programmers

    Joined:
    Jan 21, 2007
    Posts:
    3,776
    Referrals:
    3
    Sythe Gold:
    5
    [SRL4] AutoClicker

    I was hoping you wouldn't ask that. . .

    Sleep() pretty much just shuts everything down for however long.

    Wait() gives the script time to recover, reduces lag, etc.

    If you have no waits in a loop then you may have some lag issues.
     
  6. -------owned-------

    -------owned------- Guru
    Banned

    Joined:
    Jan 27, 2007
    Posts:
    1,225
    Referrals:
    0
    Sythe Gold:
    0
    [SRL4] AutoClicker

    Okay. Do you know the Delphi code for wait()? Because I pretty much thought they were the same, since I'm comfort with VB.
    Code:
    Function wait(ms)
    for i = 1 to ms 
    sleep(1)
    next i
    end function
    
    You've got to do the declares, ofcourse.
     
  7. Town

    Town Grand Master
    Scar Programmers

    Joined:
    Jan 21, 2007
    Posts:
    3,776
    Referrals:
    3
    Sythe Gold:
    5
    [SRL4] AutoClicker

    Nope, I've never tried scripting in Delphi even though I'm sure I could with a little work.
     
  8. BullsEye

    BullsEye Guru
    Banned

    Joined:
    Apr 4, 2007
    Posts:
    1,233
    Referrals:
    0
    Sythe Gold:
    0
    [SRL4] AutoClicker

    Dang i got error.. so ill use my .exe autotyper then
     
  9. c0ldb0y

    c0ldb0y Member

    Joined:
    Oct 3, 2007
    Posts:
    81
    Referrals:
    0
    Sythe Gold:
    0
    [SRL4] AutoClicker

    guys i know your ganna hate me but im new and how do you make your own scar script cause i wanna make my own auto *gulp*
    p.s please dont practicaly hate on me...:(
     
  10. H A X 0 R

    H A X 0 R Active Member
    Banned

    Joined:
    Feb 8, 2007
    Posts:
    141
    Referrals:
    0
    Sythe Gold:
    0
    [SRL4] AutoClicker

    Learn to script c0ldb0y Like in vb or sumthing...
     
  11. trent the first

    trent the first Guest

    Referrals:
    0
    [SRL4] AutoClicker

    i don't know know how to make one either
     
  12. trent the first

    trent the first Guest

    Referrals:
    0
    [SRL4] AutoClicker

    and i need to learn how to autoclick for killing chickens and fishing
     
  13. trent the first

    trent the first Guest

    Referrals:
    0
    [SRL4] AutoClicker

    what's vb?
     
  14. gauthiertim

    gauthiertim Guest

    Referrals:
    0
    [SRL4] AutoClicker

    visual basic
     
  15. neto

    neto Member

    Joined:
    Apr 2, 2007
    Posts:
    32
    Referrals:
    0
    Sythe Gold:
    0
    [SRL4] AutoClicker

    Line 4: [Error] (17665:1): Duplicate identifier 'x' in script
    wtf?
     
  16. neto

    neto Member

    Joined:
    Apr 2, 2007
    Posts:
    32
    Referrals:
    0
    Sythe Gold:
    0
    [SRL4] AutoClicker

    Line 7: [Error] (14688:1): Duplicate identifier '' in script wtf!
     
  17. neto

    neto Member

    Joined:
    Apr 2, 2007
    Posts:
    32
    Referrals:
    0
    Sythe Gold:
    0
    [SRL4] AutoClicker

    dang the mouse just goes to one of the corners of the screen instead of clicking
     
  18. neto

    neto Member

    Joined:
    Apr 2, 2007
    Posts:
    32
    Referrals:
    0
    Sythe Gold:
    0
    [SRL4] AutoClicker

    [this sucks!
     
  19. -------owned-------

    -------owned------- Guru
    Banned

    Joined:
    Jan 27, 2007
    Posts:
    1,225
    Referrals:
    0
    Sythe Gold:
    0
    [SRL4] AutoClicker

    Sir, would you mind reading the title? Simply, get SRL 4.
     
  20. ! W!LL !

    ! W!LL ! Guest

    Referrals:
    0
    [SRL4] AutoClicker

    Thanks for posting works for me!

    W!LL
     
< RSC Scar scripts? | >
Thread Status:
Not open for further replies.


 
 
Adblock breaks this site