[JMacro Beta v1.1.0] - Updated Sunday, October 6th - By Speedster239 - New Script!

Discussion in 'Archives' started by speedster239, Oct 7, 2007.

[JMacro Beta v1.1.0] - Updated Sunday, October 6th - By Speedster239 - New Script!
  1. Unread #1 - Oct 7, 2007 at 11:01 PM
  2. speedster239
    Joined:
    Jan 21, 2007
    Posts:
    313
    Referrals:
    0
    Sythe Gold:
    0

    speedster239 Forum Addict
    Java Programmers

    [JMacro Beta v1.1.0] - Updated Sunday, October 6th - By Speedster239 - New Script!

    Release Version Beta 1.1.0

    What's been updated in Beta 1.1.0?
    --I added an input GUI to coincide with the command line
    --Draynor fletcher script (not tested)


    What's coming next?
    --Ability to prompt users with input AT RUNTIME (Scar can't do that) with info such as woodcutting level to decide how frequent to click a tree and much much more!

    Current File Size: Only 195kb's !
    [​IMG]

    Welcome to the official Pre-Beta (yes, pre-beta) release of Jmacro by Speedster239 and Sponsored by Rsforums.org!

    This release Includes:
    -Basic color, mouse, key controls etc etc

    The release Exclude:
    -The built in rs-related functions
    -Antirandom booleans
    -A nice GUI, but its still core functionality is their

    This release does not include any pre-made scripts, It's merely a preview but its fully functional and you can still write very nice scripts with it.

    BEFORE YOU EVEN HIT DOWNLOAD PLEASE VISIT:
    Java SE Downloads
    And download the JDK 6 Update 3 for Windows.
    IT WILL NOT WORK IF YOU DON'T DO THIS
    [​IMG]
    Click the link as shown above.

    Writing scripts..
    To write scripts read the tutorial and function list in the documentation section. Make sure you save all scripts to the bin\scripts folder and have the latest SDK installed at C:\Program Files\Java\jdk1.6.0_02 so that we can properly compile scripts. Save all scripts as "All Files" and .java when using Notepad.

    Anyways, ask me any questions etc etc..Remember its a Pre-Beta so it's going to have bugs etc etc.

    http://www.hopfile.com/download.php?filename=Jmacro-Beta-v1.1.0.zip

    Download it, scan it if your one of those wierd people whos afraid of stuff and enjoy!

    JMacro Pad By Flaming Idiot...
    JMacro pad is a syntax highlighing IDE written In Visual Basic .NET using the version 3.5 .NET Framework.. Download the framework at..
    Download details: .NET Framework 3.5 Beta 2


    Also, post signups for the Full-Beta here.

    JMacro Pad by Flaming Idiot...
    [​IMG]

    [​IMG]

    [​IMG]

    Example Powerminer Script:
    Code:
    package scripts;
    import static com.vibesoft.bots.findcolor.findcolor;
    import static com.vibesoft.bots.print.print;
    import static com.vibesoft.bots.leftclick.leftclick;
    import static com.vibesoft.bots.pause.pause;
    import static com.vibesoft.bots.rightclick.rightclick;
     
    public class EdgeYew3 {
    public static void jbot() {
    int counter = 500;
    while (counter > 0) {
    print("EdgeYew - Please Open To The Runescape Window");
    //Lets wait for the user to open the RS window - allows 4000 seconds
    pause(4000);
    //Lets find the trees color :D
    if(findcolor(31,31,8,1,0) == true) {
    //This finds the R,G,B of 21,21,5 and than all colors within + or - 2 of it and than the first instance of it being found
    print("EdgeYew - We found the tree, initiating chop");
    //This prints the message to the log
    pause(10);
    //This pauses the script to let a laggy computer catch up, it's a good fail-safe
    leftclick();
    //This left clicks at the color to chop tree
    pause(4000);
    //This pauses for the character to chop
    }
    if(findcolor(46,34,0,1,0) == true) {
    //This finds the log color
    pause(2000);
    //This pauses for fail-safe
    rightclick();
    //This right clicks the log
    pause(200);
    //This is a fail safe to allow a laggy comp to catch up
    findcolor(255,144,64,1,200);
    //This finds the drop section of the log..
    leftclick();
    }
    //This leftclicks on drop
    counter++;
            }
        }
    }
    
    Documentation:

    Dumbasses Guide To Installing/Compiling/Running Jmacro Scripts

    Step 1: Visit the following link and click the link highlighted shown in the picture below. You'll be downloading the Java SDK Update 3.

    http://java.sun.com/javase/downloads/index.jsp

    [​IMG]

    Step 2: Once you click that link check Accept and select the offline installation.

    [​IMG]

    Step 3: Download the file and follow the self-explanatoru installation. MAKE SURE YOU DON'T CHANGE THE FILE PATH ON INSTALL

    Step 4: Once that is downloaded/installed unzip Jmacro and take a look at the files. You should see:

    [​IMG]

    Step 5: To add scripts do the following:
    -Click on the "Bin" folder
    -Then click on the "Scripts" folder
    -Once your in the "Scripts" folder rightclick and select "Create New Text Document"
    -Open up that new text document and copy/paste the script you want to use into it.
    -Then click File >> Save >> Select All Files
    -Than comes the hard part, save the script as follows:

    [​IMG]

    Notice your saving it with a .java extension

    Step 6: Go back to the "root" of Jmacro as shown int he pic on Step 4 and click "Compile-JDK 6, Up 3" to compile the scripts. If this is done properly you should see...

    [​IMG]

    Step 7: Now if this is done properly click on "Run Jmacro", enter the exact script name (case sensetive) and hit enter. Open up the Runescape Window and let it do the work for you.

    All of the above applies to writing scripts by the way.

    Complete Functions List w/ Explanations

    findcolor(R,G,B,Tolerance,Case);
    This searches for an RGB color within the tolerance (+ or -) and which pixel (in the even their are more than one of the same pixel) to choose in order from left to right and down.
    --
    movemouse(x,y);
    This moves the mouse to the specified X,Y position on the screen.
    --
    rightclick();
    This rightclicks the mouse at the position it is over.
    --
    leftclick();
    This leftclicks the mouse at the position it is over.
    --
    sendkey();
    This sends A SINGAL KEY to the board.
    Also includes:
    ENTER
    SHIFT
    --
    pause(ms);
    Pauses the script for the specified period of time in milliseconds.
    --
    print("String of text");
    Print's the specified string of text to the "black box" or "JVM" or "log"



    Enjoy, i'll be posting tutorials and such later.
     
  3. Unread #2 - Oct 8, 2007 at 4:14 AM
  4. Macroman
    Joined:
    Jan 21, 2007
    Posts:
    6,919
    Referrals:
    9
    Sythe Gold:
    12

    Macroman Hero
    Do Not Trade

    [JMacro Beta v1.1.0] - Updated Sunday, October 6th - By Speedster239 - New Script!

    i've tried using it and it didn't open properly.
     
  5. Unread #3 - Oct 8, 2007 at 11:52 AM
  6. BullsEye
    Joined:
    Apr 4, 2007
    Posts:
    1,233
    Referrals:
    0
    Sythe Gold:
    0

    BullsEye Guru
    Banned

    [JMacro Beta v1.1.0] - Updated Sunday, October 6th - By Speedster239 - New Script!

    it didnt worked @_@
     
< Trading tank ranger for 1 def pure. | lvl 78 ranger. >

Users viewing this thread
1 guest


 
 
Adblock breaks this site