• Log in or sign up for an account here: https://www.sythe.org/login

Random Interval AutoClicker for OSRS

Program

Formerly known as Andy Samberg

Retired Sectional Moderator
Joined
Sep 17, 2015
Sythe Gold
902
Messages
5,003
Simple script that allows you to auto-click a spot on OSRS with random time intervals to minimize detection.

At the top of the script are your options for where and how often the bot should click. Read the lines after the double forward slashes "//" for more info.

By default, you can also tell the script what text should be on-screen before you click. So for example, say I'm thieving a stall, but I don't want to click a guard that's walking by, I can set the targetHoverText to "ThieveStall" and that'll ensure that you only click on the stall. If you don't care for this option, set checkIfHovering to false.

I plan to make a video describing how to get your X and Y coordinates from your OSRS client if you do not know how.

Press escape to quit the script.

Useful links if you don't know how to get started, follow in order:
[VIDEO TUTORIAL] -- How to get colors and coordinates from your OSRS client for SytheLib scripts
SytheLib Download [Alpha7]
SDE - Development Environment for SytheLib (use this to code scripts)

Code:
SetVirtualMouseJavaModeOn();
if (SetWindow("Old School") == ""){Die("Could not find runescape");}while(SelectInnerWindow("SunAwtCanvas")){}
// SetVirtualInputsOff();

global checkIfHovering = false; // Do you want to check if you're clicking something specific?
global targetHoverText = "TalktoGrandExchangeClerk"; // What text should show up when hovering this target? No spaces, hyphens, etc. Can be a subset of the characters, like "TalktoGrand".
global targetX = 253; // Put the X position of where you want to click here.
global targetY = 135; // Put the Y position of where you want to click here.
global minClickInterval = 100; // Minimum interval before clicking again. In Milliseconds.
global maxClickInterval = 1000; // Maximum interval before clicking again. In Milliseconds.

global font1 = LoadFontFromBitmap(LoadBitmapFromString(
        "0006!0q_70LRx4sF+o`-Q(69p^U(kguHXRVl1Tsn0MG=!91lqkYyysv05B4pQlF|AB=t!pCYVX" +
        "2)h2*aN}8UdPWxLnl6jJ%>_}#<YMUm-wKGsQs=Eg^#D-)KbxvtDmSwF`?t#to6n2AZ-MNfjWpv" +
        "RtIc{xZVmAA`T-_+vEwW>7>yr?annH-Gie}w9`?p^E+rsyAG}0uaMw4CKk&-5DV<ne%>3gf9b=" +
        "?V}nG$6ILOFj|n@D6x+BEyG-1nW{OQ`kpiYSR9$QhNKw6V6NbuL%Ur1^Q0`OT7&ii>>TFC$(%i" +
        "854~kjs0nAfO`!ht{f6`O;L^$Bcz}<S^}FUgn=z1{nnaL{LzA)qd-*&AAX(^4%-Ta>=Bm$%au(" +
        "O=UClkK^Xv?$`6%v7#o~UT%r82MKpVMRLX0n(UK%baPDkU{8|6Y9g@G4~^Dkag}pp1{>b<1!3o" +
        "IGbEXSBL!Fp!>t`L0Y;WeQ}c>hDrnXE?bL+LtMcZOX=u-TyoIJmGw$+yu8SE3CYo5vYcfa_l9E" +
        "4n0cDVM)x!j_ETU4!?zPb|Br%MVGg4w94PD$3Nf8l1WeJJ2UEQFvKJLr9?Xe)lf|GvSOvN|02P" +
        "8)&ePssOHnEFDNnG0I+Zx_;ZHqs=QO#d9T*YE(WTK-|8r;_^BC=Z+weVleUo~6aqqJ>XD)UapX" +
        "-2WJqeY)}ZOy45W(ug<^K#o}CM$2va=CoksVVf810+SHMgA`2ig2MJ{SW7&00000", 0xff00ff, true),
"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789:", 0xff00ff);

def CheckIfHoveringTarget() {
    Scrape();
    var x = 0; var y = 0;
    var foundText = OCRUsingFont(x, y, font1, 0, 0, 300, 100, 0, 30, 50, 0);
    return Contains(targetHoverText, foundText);
}

def AutoClick() {
    MoveMouse(targetX, targetY);
    while(true) {
        if(checkIfHovering && CheckIfHoveringTarget()) {
            ClickMouse(targetX, targetY, 1);
        } else if(!checkIfHovering) {
            ClickMouse(targetX, targetY, 1);
        }
        Sleep(RandomInt(minClickInterval, maxClickInterval));
    }
}

AutoClick();
 
Last edited:
I have used Automouse clicker on a few accounts for 99 mage, not had a ban yet, 1st account i done it on was about 2 years ago and its not been banned. Also left it on for 6 hour kick off then strait back to it, atleast 18 hours a day :P
 
Going to give this a test later :D

How do I run this? I've never been into botting or scripts so I really don't know

I have used Automouse clicker on a few accounts for 99 mage, not had a ban yet, 1st account i done it on was about 2 years ago and its not been banned. Also left it on for 6 hour kick off then strait back to it, atleast 18 hours a day :p

Feel free to add my skype if you have issues or questions.

live:sythe.andy
 
Nice one andy, a very good idea let me know what the ban rate is on this. This should be great for splashing for 6 hours and even alching for magic.
 
Nice one andy, a very good idea let me know what the ban rate is on this. This should be great for splashing for 6 hours and even alching for magic.

I can't make you any guarantees, but I can tell you that on a new account I made recently I've managed to successfully use this script and others to get mils of exp without a ban while pretty much suiciding this last month or so. :)

Edit: @Bert This video tutorial may be of interest to you if you haven't done anything with SytheLib previously: [VIDEO TUTORIAL] -- How to get colors and coordinates from your OSRS client for SytheLib scripts
 
Last edited:
I can't make you any guarantees, but I can tell you that on a new account I made recently I've managed to successfully use this script and others to get mils of exp without a ban while pretty much suiciding this last month or so. :)

Edit: @Bert This video tutorial may be of interest to you if you haven't done anything with SytheLib previously: [VIDEO TUTORIAL] -- How to get colors and coordinates from your OSRS client for SytheLib scripts

Thanks looks very interesting, when I have some free time I will definitely test this out!
 
I need this for rs3 xD
 
I need this for rs3 xD

With a slight tweak it'd work for RS3 too. Seems botting is most popular on OSRS though.
 
Two Factor Authentication User
I've never actually tried it, but this should also work for Guthan's at NMZ?
But you'd also need to know if you died, i'm guessing there is a way to find this in sytheLib - may have a look in to it.
 
Valentine's Singing Competition Winner
Sythe Awards 2015 Winner
Sythe Awards 2016 Winner
Sythe Awards 2020 Winner
Member of the Month Winner
MushyMuncher
Gohan has AIDS
Extreme Homosex
World War 3
I'm LAAAAAAAME
Discord Verified
Off Topic Participant
I've never actually tried it, but this should also work for Guthan's at NMZ?
But you'd also need to know if you died, i'm guessing there is a way to find this in sytheLib - may have a look in to it.

OCR the chat to detect text "Oh dear! You have died."
 
Extreme Homosex
Two Factor Authentication User
Christmas 2020
Gohan has AIDS
Halloween 2020
I saw Matthew
May the 4th Be With You
Pokémon Trainer
Potamus
Summer 2020
Sythe Awards 2025 Winner
Sythe's 20th Anniversary
Toast Wallet User
Valentine's Day 2021
I've never actually tried it, but this should also work for Guthan's at NMZ?
But you'd also need to know if you died, i'm guessing there is a way to find this in sytheLib - may have a look in to it.
As a nmz trainer i've noticed quite a lot of people just standing there autoclicking anti-melee with reasonably high stats, so i figure ban rates are really low even on the regular one
 
<3 n4n0
Gohan has AIDS
MushyMuncher
Not sure what the issue turned out to be, but I can get it to work passably as a clicking script with hard coded coordinates. Unfortunately, I can't seem to get key presses to work (for RS3 EOC Action bar); has anyone had any luck with this?
 
  • Like
Reactions: Ayl
Not sure what the issue turned out to be, but I can get it to work passably as a clicking script with hard coded coordinates. Unfortunately, I can't seem to get key presses to work (for RS3 EOC Action bar); has anyone had any luck with this?

Get keypresses to work...? Not sure what you mean, but I didn't make it auto-keypress, just auto-click.
 
<3 n4n0
Gohan has AIDS
MushyMuncher
Get keypresses to work...? Not sure what you mean, but I didn't make it auto-keypress, just auto-click.
Yea, this may need a separate topic - sorry to hijack yours. I just couldn't get the rs3 client to recognize key presses in game (though it worked for the login screen).
 
Last edited:
Yea, this may need a separate topic - sorry to hijack yours. I just couldn't get the rs3 client to recognize key presses in game (though it worked for the login screen).

Yeah I haven't touched RS3 in years, don't even have it downloaded :P But I've never had an issue having keypresses register while running a script unless you don't have the window selected when typing. Maybe I'll take a look one of these days, but I was hoping to focus more on the OSRS side of scripting.
 
Supporting Business
Great job with this, will give it a try out :)
 
Runescape Gamblingrunescape gambling
Back
Top