- 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)
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:





















































