Last active
December 14, 2015 00:48
-
-
Save DelusionalLogic/5001121 to your computer and use it in GitHub Desktop.
Simple documentation for StealthClicker
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Required functions: --Please keep everything in these functions, you need all, otherwise the program wont work | |
init() --Runs once on lua load | |
tick(time) --Runs every 100 ms, waits for last call. parameters: time = seconds since epoch | |
Global Methods: | |
loadEncrypted(string encryptedLua) --Run a string of encrypted Lua (You get the string crypted using the encrypter linked above) | |
getHWID() --Get a unique HWID for the computer | |
getWindow(string windowName) --Get the window instance of the window with the given name | |
getWindowByHandle(IntPtr handle) --Get a window based on the handle | |
getWindowWait(string windowName, int timeout) --Same as getWindow, except it keep on trying until timeout, returns when window is gotten or timeout is up (in seconds) | |
getTopWindow() --Get the topmost window | |
getMousePosition() --Gets the mouse position | |
openProcess(string path) --Opens the program specified in path and return the Process object (returns before the window is created) | |
getProcesses(string processName) --Gets a list of processes with the process name | |
getD3DInterface() --Gets a D3DInterface, used for interfacing with DirectX applications | |
sleep(int time) --Sleeps for the given amount of time (in milliseconds) | |
print(object message) --Print the object (Automatic serialization) | |
createFolder(string folderName) --Create a directory | |
Global Variables: | |
Color --A ColorUtil instance | |
WebServer --A WebServer factory | |
WebRequester --A WebRequester instance | |
ColorUtil: | |
getDistance(Color color1, Color color2) --Get the distance between colors (Taking human vision into account) | |
createColor(int r, int g, int B) --Create a C# Color based on the values given | |
Window: | |
getChild(string className) --Get a window child (fx "Edit" in the notepad window) | |
isOpen() --Get if the window does still exist | |
setPos(int x, int y) --Set the window position | |
setSize(int width, int height) --Set the window size | |
getPos() --Get the window position | |
getSize() --Get the window size | |
isMinimized() --Returns true of the window is minimized | |
bringToFront() --Bring the window to the front | |
sendToBack() --Send the window to the back | |
clickRelative(double widthPercent, double heightPercent) --Click point on window this percent of the window width from the top left (50,50 is middle) | |
click(int x, int y) --Click this position (relative to window) | |
sendString(string message) --Send message to window | |
sendRawChar(int ch) --Send the raw char to the keyboard buffer of the window (eg 8 for backspace) | |
sendRawKey(int keyCode) --Send the raw virtual keycode to the messagequeue (Look here for keycodes: http://msdn.microsoft.com/en-us/library/windows/desktop/dd375731(v=vs.85).aspx) | |
releaseKey(int keyCode) --Send the key release message | |
getScreenshot() --Get a Bitmap image window. | |
bitBlt() --Get a Bitmap image of the window, alternative method, works on some stuff that getScreenshot() doesn't. | |
getRelativeMouse() --Get the mouse position relative to the window | |
D3DInterface: | |
Inject(int pid) --Inject the D3DInterface into the provided ProcessID | |
detach() --Detach the D3Dinterface | |
getScreenshot() --Get a bitmap of the current D3D screen | |
WebRequester: | |
getSite(url) --Make a GET request to the specified URL. Returns the data recieved. | |
getSite(url, data) make a POST request to the specified URL. The data should be a table of <string string>. returns the data recieved. | |
WebServer factory: | |
newServer(func callback, string bindAddr) --Create a new WebServer bound to addr (eg http://localhost:8080/), Calling callback on every new connection. Callback is described at the end of this file. | |
WebServer (BETA): | |
Run() Start the webserver, and make it listen | |
Stop() Stop the webserver and close it | |
Process: | |
see: http://msdn.microsoft.com/en-us/library/system.diagnostics.process.aspx | |
Bitmap: | |
see: http://msdn.microsoft.com/en-us/library/system.drawing.bitmap.aspx | |
Point: | |
see: http://msdn.microsoft.com/en-us/library/system.drawing.point.aspx | |
Size: | |
see: http://msdn.microsoft.com/en-us/library/system.drawing.size.aspx | |
HttpListenerRequest: | |
see: http://msdn.microsoft.com/en-us/library/system.net.httplistenerrequest.aspx | |
Callback: | |
Gets passed a HttpListenerRequest as the first and only argument. | |
Has to return one of 3 things: | |
a. A string to send to the connection (such as a html page) | |
b. A table of bytes to send to the connection (Such as an exe file) | |
c. A Bitmap to send to the user (Conversion to byte is handled internally) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment