[LuaKeys] Java Automation tool +Fishing Script menu

User Tag List

Results 1 to 7 of 7
  1. #1
    kyperbelt's Avatar Corporal
    Reputation
    47
    Join Date
    Apr 2016
    Posts
    20
    Thanks G/R
    3/14
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [LuaKeys] Java Automation tool +Fishing Script

    LuaKeys




    WHAT IS IT
    LuaKeys is a Lua script interpreter/compiler written in java using the lovely LuaJ lib. It is meant to ease the execution of lua scripts with program automation in mind. Things like pixel reading,image matching ,keyboard and mouse input are all built in to provide you with the tools you need to start building cool scripts.(some features are still not implemented)

    I have included a simple fishing script, tested on kronos. 1-75 fishing in about 30 mins(idk i was afk lol)


    BUT WHY
    Simply made this out of boredom and because i didnt see any similar tools out there. Yes there is things like ahk or autoit but they do not use lua


    FEATURE LIST
    • Send Key Input(working)
    • Send Mouse Input(limited)
    • Read Pixel data (working)
    • Pixel Search(working)
    • Advanced Image Searching(limited)
    • Human Like Behaviour (limited)
    • Input to Background windows (limited)
    • Memory Manipulation (limited)
    • Key Hooking(working)
    • Simple file reading(planned)
    • Easy to use Sound/Alert tools(planned)
    • Execute programs(planned)


    GETTING STARTED
    Program Currently runs on all operating systems but requires the latest Version of java.
    Get Java at https://java.com/en/download/
    WINDOWS:
    1. To begin using LuaKeys unzip the luakeys folder and place it into your
      desired directory.
    2. double click the 'createRUNBAT.jar' to create a windows bat file that
      can be opened in administrator mode
    3. Put the scripts you wish to run inside the 'scripts' folder
    4. right click the run.bat file and run as administrator.(you do not need
      to do this but some features will not be enabled if you do not)
    5. select the script to run from the drop down menu and press play


    Note that some features are not fully tested on other platforms.
    OTHER:
    1. unzip LuaKeys and head to the folder and run the LuaKeys jar
    2. Put the scripts you wish to run inside the 'scripts' folder
    3. select the script to run from the drop down menu and press play

    To make your own scripts open up the NOOBDOCS.txt to see the functions available for use aside from general lua.
    DOWNLOAD:

    contains luakeys jar,bat creator,folder hierarchy and some basic scripts.

    Latest Release: LuaKeys v0.2

    replace the old jar with this new one if you do not wish to redownload the whole folder again.(if this is your first time downloading the program please download the latest release instead.)

    Jar Only: LuaKeys.jar


    Hope someone can find this useful If you have Feedback,Suggestions or Concerns feel free to leave a post.

    IF YOU HAVE ANY REQUESTS FOR A SIMPLE SCRIPT FEEL FREE TO POST IT AND MAYBE I WILL MAKE IT FOR YOU IN MY FREE TIME
    Last edited by kyperbelt; 05-15-2016 at 10:29 PM.

    [LuaKeys] Java Automation tool +Fishing Script
  2. Thanks Dazzled (1 members gave Thanks to kyperbelt for this useful post)
  3. #2
    kyperbelt's Avatar Corporal
    Reputation
    47
    Join Date
    Apr 2016
    Posts
    20
    Thanks G/R
    3/14
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ok guys had some free time today so i decided to put up an update for LuaKeys
    here is a small changelog:

    v0.2 5/14/16
    Added:
    • some advanced image searching/recognition is available through the sikuliX lib
    • some human like behavior(semi organic mouse movement)
    • sending key input to background windows is now possible
    • added the ability to hook functions to key presses
    • some simple memory reading and writing is added


    Fixes:
    • fixed a bug that cased key input to sometimes not go through



    And here is is a simple anti afk script that i have been using a lot recently to avoid 20 hour queues in private servers.(should be included in the new download in OP)
    Code:
    local interval = 120; 	--time in seconds until next key press
    local elapsed = 0; 	  	--elapsed time since last key press
    local lastTime = script.time(); --last time elapsed time was updated
    local key = Keys.W;		--key to press to prevent afk
    script.sleep(2000); 	--sleep for 2 seconds
    log.write("initiating anti afk");
    
    while true do
    	log.write("elapsed time:"..elapsed); 	--write the elapsed time to the log
    	elapsed = elapsed+(script.time() - lastTime)/1000; --update elapsed time
    	lastTime = script.time();
    	if((elapsed > interval))then 	--if elapsed time is greater than interval then press the key
    		log.write("pressing anti afk key");
    		input.keyDown(key);
    		script.sleep(5); 
    		input.keyUp(key);
    		elapsed = 0; 	--reset the elapsed time
    	end
    	script.sleep(1000); --sleep for one second 
    end
    Last edited by kyperbelt; 05-15-2016 at 10:29 PM.

  4. Thanks Krack3n (1 members gave Thanks to kyperbelt for this useful post)
  5. #3
    kyperbelt's Avatar Corporal
    Reputation
    47
    Join Date
    Apr 2016
    Posts
    20
    Thanks G/R
    3/14
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    added a jar only download for those who wish to not have to redownload the whole zip every time.
    also included a simple script to capture screen images and save them to a res folder for use with other scripts.

    here is the code:
    Code:
    local img = nil;
    local savelocation = "res/";
    local capture = false;
    local save  = false;
    function captureImage()
    	log.write("capturing on screen image");
    	capture = true;
    end
    
    function saveImage()
    	if(img~=nil)then
    		log.write("saving image.....");
    		save = true;
    	end
    end
    
    input.hook(captureImage,Keys.C,Keys.ALT_MASK);
    input.hook(saveImage,Keys.S,Keys.CTRL_MASK);
    
    while true do
    	script.sleep(1000);
    	if capture then
    		img = screen.capture(screen.selectRegion("select image"));
    		capture = false;
    		log.write("done capturing on screen image.");
    	end
    	if save then
    		screen.saveImage(img,savelocation);
    		save = false;
    		log.write("Image saved successfuly!");
    	end
    end
    this is a windows only script at the moment but can be made to work with any os simply by removing the key hooks.
    it comes included with the latest release download.

    EDIT: when the script is running simply press ALT+C to capture an image and CTRL+S to save it to the "res/" folder(will create one if there is none)
    You can change the image save directory by modifying savelocation variable
    Last edited by kyperbelt; 05-15-2016 at 11:47 PM.

  6. #4
    Dazzled's Avatar Active Member
    Reputation
    36
    Join Date
    Sep 2008
    Posts
    137
    Thanks G/R
    1/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nice! Will give this a go. Looks great!

  7. #5
    icewraithuk's Avatar Member
    Reputation
    1
    Join Date
    Jan 2011
    Posts
    3
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi
    Thanks for doing this! I've just tried to run the fishing script on OSX, but it doesn't seem to do anything and there isn't anything being written to the log - any ideas?

  8. #6
    icewraithuk's Avatar Member
    Reputation
    1
    Join Date
    Jan 2011
    Posts
    3
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ah, looks like it wants to run in 32bit mode, but OSX only does 64bit - any ideas?

  9. #7
    tedfy's Avatar Member
    Reputation
    1
    Join Date
    Jul 2016
    Posts
    3
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for doing this!

Similar Threads

  1. [Selling] [B]EXCLUSIVE[/B] WOTLK(3.3.5a) - TOOLS (Hack/Script)
    By s1m421 in forum World of Warcraft Buy Sell Trade
    Replies: 0
    Last Post: 04-13-2015, 11:48 AM
  2. MacroMonkey Automation - Macro - Bot - Scripting system.
    By Sirmabus in forum Screenshot & Video Showoff
    Replies: 1
    Last Post: 12-07-2013, 02:06 AM
  3. [Release] Teleport hack tool ! (No script)
    By Kelz in forum FPS Game Discussions
    Replies: 24
    Last Post: 10-28-2012, 11:04 PM
  4. [Bot] Mini Bot Program I wrote to BACKGROUND automate the fishing tournament REP exploit.
    By Sklug in forum World of Warcraft Bots and Programs
    Replies: 11
    Last Post: 09-01-2012, 10:25 PM
  5. Ac Tool Fishing script
    By Nhguste in forum World of Warcraft Bots and Programs
    Replies: 2
    Last Post: 06-09-2010, 04:18 PM
All times are GMT -5. The time now is 07:38 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search