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

RS2Lib, what functions should I add?

Status
Not open for further replies.

Govind

The One Musketeer

Highly Respected
Mudkips
Retired Administrator
Joined
Apr 22, 2005
Sythe Gold
23
Messages
7,825
Le Monkey
Potamus
Prove it!
Sythe Awards 2011 Winner
Tier 1 Prizebox
Tortoise Penis
Trole
UWotM8?
Wait, do you not have an Archer rank?
I'm currently coding an SDK with runescape autoing related functions. At the moment it only works with C++ (because it's only linker libraries for now), but once it's complete I will create DLLs so that this can be used with Visual Basic as well.

If anyone wants to help, post here.

Also, these are the functions I currently have:

Keyboard functions:

void SendKeys(string keys, int times, int ms_wait) - Simulates typing the specified string followed by the return/enter key, as many times as specified in the times variable, and sleeps the amount of milliseconds specified in ms_wait.

bool IsKeyUp(char key) - Returns true if the specified key is not being pressed, false if it is.

bool IsKeyDown(char key) - Opposite of IsKeyUp.

void SendChar(char key) - Simulates typing the specified keystroke once.

Mouse functions:

void MoveMouse(int x, int y) - Moves the mouse to the specified x,y coordinates, use my ShowMousePos application to find coordinates.

void LeftClick() - Simulates pressing the left mouse button and releasing it. You must move the mouse to the desired coordinates beforehand. I will add the coordinate arguments later.

void RightClick() - Simulates pressing the right mouse button and releasing it. You must move the mouse to the desired coordinates beforehand. I will add the coordinate arguments later.

void HoldMouse(int x, int y, bool left = true) - Simulates pressing down the selected mouse button (left=true,right=false) at the specified coordinates but not releasing it.

void ReleaseMouse(int x, int y, bool left = true) - Simulates releasing the selected mouse button (left=true,right=false) at the specified coordinates.

void MultiClick(int times, int ms_wait, bool left) - Clicks the mouse the number of times specified, using the button specified and sleeping the amount of time specified.

void ClickSecondRSOption()
- Clicks the second runescape right-click menu option on the current mouse coords. Note that this will not work on the buttons on the bottom part of the screen.

Random functions:

void SeedRand() - Seeds the random number generator to the current system time. This must be called to ensure genuine randomness.

int Random(int min, int max) - Returns a random integer number between min and max.

char RandChar() - Returns a random lowercase character from a-z.

void RandSleep(int min, int max) - Sleeps for a random number of milliseconds between min and max.

I'm not at home right now so I can't be sure that these are all the functions, I've probably forgotten to list a few, anyways, please post suggestions of what you think I should add, also post if you feel like helping me.
 
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 am gravedig
 
Status
Not open for further replies.
Runescape Gamblingrunescape gambling
Back
Top