This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Left's profile picture

Linear Library - Collection of Useful Functions

Started by Left, 10 March 2013 - 09:26 PM
Left #1
Posted 10 March 2013 - 10:26 PM
AWLAYS EDITING

STILL ADDING FUNCTIONALITY

Linear Library


A useful collection of functions

Current Version: linlib-0.11_R1

Dev Version: linlib-0.2_PR1

Linear Library has a collection of useful function I have made in the last 6 months.

Linear Library (linlib for short) can be used with any program and is designed to be light weight. If you would like to contribute to the project you can simply ask in the reply section.



GET LINLIB: pastebin get J6srbdzH libget

DEV: https://github.com/Linearus/linlib

http://pastebin.com/J6srbdzH


API:

SpoilerLibrary Functions:

SpoilergetVersion():

SpoilerReturns the current version.

Usage:

getVersion()


getNewVersion():

SpoilerReturns the latest version.

Usage:

getNewVersion()


checkUpdate()

SpoilerReturns if you are on the latest version.

Usage:

checkUpdate()

Functions:

SpoilercentreText():

SpoilerReturns the position to set the cursor to centre text the middle of the screen < Bad grammar

Usage:

centreText("string")


openModem():

SpoilerOpens very side which HAS a modem attached to it.

Usage:

openModem()


login()

SpoilerReturns true if the username is matched with the password (Will index the username and password… Meaning it will make sure that the index number of the username matches the index number of the password)

Usage:

login("username", "password", username-table, password-table)


mouseClick()

SpoilerWill return the location of where the mouse is clicked on the screen.

Usage:

mouseClick()


keyInput()

SpoilerWill return the key which has been pressed.

Usage:

keyInput()


loadAPIS()

SpoilerWill load all the APIS with in the directory which has been specified.

Usage:

loadAPIS("someDir")


loginOnline()

SpoilerWill return true it the detials specified can login to minecraft.net

Usage:

loginOnline("MyUsername", "MyPassword")

Changelog:

linlib-0.11_R1 - keyInput - Bug Fix.

linlib-0.1_R1 - Release
theoriginalbit #2
Posted 10 March 2013 - 10:28 PM
[left]I HIT ENTER AND POSTED THIS SORRY. TO BE EDITED[/left]
Lol I feel your pain, I have done the same once or twice … cant wait to see what you post …