Results 1 to 22 of 22

Thread: ScrollBot - yeah, now its easier to read appliances' scripts!

  1. #1
    Join Date
    Dec 2006
    Location
    Copy pastin to my C#
    Posts
    3,788
    Mentioned
    8 Post(s)
    Quoted
    29 Post(s)

    Default ScrollBot - yeah, now its easier to read appliances' scripts!

    Its nothing big, just a small snippet.

    Code:
    import java.awt.Robot;
    import java.awt.event.KeyEvent;
    // by n3ss3s
    // Only for educational purposes or scrolling.
    class ScrollBot {
      
      public static void main (String [] args) throws Exception {
        int speed = 500; // Time between a scroll
        int i = 0;
        int scrolls = 1000; // How many times to scroll
        Robot robo = new Robot();
        while (!(i == scrolls) {
          robo.mouseWheel(1);
          robo.delay(speed);
          i ++;
        }
        
      }
    }
    Donations will be accepted lol

  2. #2
    Join Date
    Dec 2006
    Location
    .̿̂̔͋͗̎̆ͥ̍̒ͤ͂̾̌̀̅
    Posts
    3,012
    Mentioned
    1 Post(s)
    Quoted
    3 Post(s)

    Default

    Nice, nice...

  3. #3
    Join Date
    Dec 2006
    Location
    Copy pastin to my C#
    Posts
    3,788
    Mentioned
    8 Post(s)
    Quoted
    29 Post(s)

    Default

    I'd make a java typeSend but I dont know what to use for getting the key code.

  4. #4
    Join Date
    Dec 2006
    Location
    .̿̂̔͋͗̎̆ͥ̍̒ͤ͂̾̌̀̅
    Posts
    3,012
    Mentioned
    1 Post(s)
    Quoted
    3 Post(s)

    Default

    Hm. Is that necessary? Because wouldn't something like this work:

    Code:
    public void typeSend(String typewhat, int delay ) throws Exception {
        int a = 0;
        int b = 0;
        int txtLength = typewhat.length();
        char[] theTxt = new char[txtLength];
        if (typewhat != null && typewhat.length() > 0) {
            for( a = 0; a < txtLength; a++) {
                theTxt[a] = typewhat.charAt(a);
            }
            for(b = 0; b < theTxt.length; b++) {
                //Something to send the character..
                Thread.sleep(delay);
            }
        }
    }
    Just takes all the characters from the string to an array.. Then would send the characters 1 by one.. Not sure at all because I just quickly put that together and didn't test.

  5. #5
    Join Date
    Jan 2007
    Location
    Kansas
    Posts
    3,760
    Mentioned
    1 Post(s)
    Quoted
    3 Post(s)

    Default

    Don't you need to make them private ints?


  6. #6
    Join Date
    Dec 2006
    Location
    .̿̂̔͋͗̎̆ͥ̍̒ͤ͂̾̌̀̅
    Posts
    3,012
    Mentioned
    1 Post(s)
    Quoted
    3 Post(s)

    Default

    Hm.. I doubt.

  7. #7
    Join Date
    Dec 2006
    Location
    Copy pastin to my C#
    Posts
    3,788
    Mentioned
    8 Post(s)
    Quoted
    29 Post(s)

    Default

    GoF, I would but I need to use the KeyEvent class to get the keycodes to use keyPress() and theres sooo many things to put in the constructor and I have no idea what to use there..

  8. #8
    Join Date
    Nov 2006
    Location
    NSW, Australia
    Posts
    3,487
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Sorry for not knowing anything about Java...but how the hell do I run this?

    Also, are you going to post a picture on your millenium thread n3ss3s?
    [CENTER][img]http://signatures.mylivesignature.com/54486/113/4539C8FAAF3EAB109A3CC1811EF0941B.png[/img][/CENTER]
    [CENTER][BANANA]TSN ~ Vacation! ~ says :I Love Santy[/BANANA][/CENTER]

    [CENTER][BANANA]Raymond - Oh rilie? says :Your smart[/BANANA][/CENTER]

  9. #9
    Join Date
    Dec 2006
    Location
    Copy pastin to my C#
    Posts
    3,788
    Mentioned
    8 Post(s)
    Quoted
    29 Post(s)

    Default

    I could... I hope millenium means 1000 or like that

    Is it supposed to be funny or..?

    EDIT: Nope, I wont post a pic, Ill post a script

  10. #10
    Join Date
    Nov 2006
    Location
    NSW, Australia
    Posts
    3,487
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Ok...now how do I run this JAVA application thing?
    [CENTER][img]http://signatures.mylivesignature.com/54486/113/4539C8FAAF3EAB109A3CC1811EF0941B.png[/img][/CENTER]
    [CENTER][BANANA]TSN ~ Vacation! ~ says :I Love Santy[/BANANA][/CENTER]

    [CENTER][BANANA]Raymond - Oh rilie? says :Your smart[/BANANA][/CENTER]

  11. #11
    Join Date
    Mar 2007
    Posts
    3,681
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    im guessing save it on notepad as .jar?

  12. #12
    Join Date
    Dec 2006
    Location
    Copy pastin to my C#
    Posts
    3,788
    Mentioned
    8 Post(s)
    Quoted
    29 Post(s)

    Default

    Nooo! You have to compile into a class file either using javac straight on tha cmd or then use textpad or sumting.. Then, you just type to cmd "java Scrollbot"

  13. #13
    Join Date
    Sep 2006
    Location
    New Jersey, USA
    Posts
    5,347
    Mentioned
    1 Post(s)
    Quoted
    3 Post(s)

    Default

    Save it in notepad as .java, compile it into a .class (javac.exe?), then run it with...java.exe?
    Interested in C# and Electrical Engineering? This might interest you.

  14. #14
    Join Date
    Mar 2007
    Posts
    3,681
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    oh right woops my bad sorry lol

  15. #15
    Join Date
    Dec 2006
    Location
    Copy pastin to my C#
    Posts
    3,788
    Mentioned
    8 Post(s)
    Quoted
    29 Post(s)

    Default

    yes.

  16. #16
    Join Date
    Dec 2006
    Location
    Sweden
    Posts
    10,812
    Mentioned
    3 Post(s)
    Quoted
    16 Post(s)

    Default

    Yeah, is there a tut somewhere on how to run JAVA? It is my first time .. I sdon't really understand what you are saying .. how do I compile it into a .class and where is java.exe and javac.exe?

    :noob alert: lol

    -Harry


    Send SMS messages using Simba
    Please do not send me a PM asking for help; I will not be able to help you! Post in a relevant thread or make your own! And always remember to search first!

  17. #17
    Join Date
    Dec 2006
    Location
    Copy pastin to my C#
    Posts
    3,788
    Mentioned
    8 Post(s)
    Quoted
    29 Post(s)

    Default

    You need to have Java Development Kit (JDk) which you can dl from Java's home. (java.sun.com I think).

    Then, (Java.exe is in your JRE/bin folder in your Java folder and Javac.exe is in your JDK/bin folder in your Java folder.

    Then.. god damit im too lazy to explain, just download JDK and textpad or netbeans or notepad++ and open the file with one of those and press compile and then press run lmao.

  18. #18
    Join Date
    Nov 2006
    Location
    NSW, Australia
    Posts
    3,487
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    I am so not going to bother...
    [CENTER][img]http://signatures.mylivesignature.com/54486/113/4539C8FAAF3EAB109A3CC1811EF0941B.png[/img][/CENTER]
    [CENTER][BANANA]TSN ~ Vacation! ~ says :I Love Santy[/BANANA][/CENTER]

    [CENTER][BANANA]Raymond - Oh rilie? says :Your smart[/BANANA][/CENTER]

  19. #19
    Join Date
    Dec 2006
    Location
    .̿̂̔͋͗̎̆ͥ̍̒ͤ͂̾̌̀̅
    Posts
    3,012
    Mentioned
    1 Post(s)
    Quoted
    3 Post(s)

    Default

    Like hundreds of mb's to dl just to run scrollbot

  20. #20
    Join Date
    Dec 2006
    Location
    Copy pastin to my C#
    Posts
    3,788
    Mentioned
    8 Post(s)
    Quoted
    29 Post(s)

    Default

    I havent said anyone should bother

    EDIT: Lol, you cant play runescape without Java, you cant run any Java without Java.

  21. #21
    Join Date
    Aug 2007
    Posts
    104
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Wrong. You can run runescape with the JRE. Only the JDK comes with javac.exe etc.

  22. #22
    Join Date
    Dec 2006
    Location
    Copy pastin to my C#
    Posts
    3,788
    Mentioned
    8 Post(s)
    Quoted
    29 Post(s)

    Default



    If you have JRE then you have Java.

    So, you cant run runescape without Java.

    JDK is Java Development Kit and that you DONT need to play rs...

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Hey! Hey you! Yeah You! Read this!
    By DaBomber2 in forum Who Are You ? Who ? Who ?
    Replies: 0
    Last Post: 12-31-2007, 08:45 PM
  2. Hey You! Yeah you! read this!
    By DaBomber2 in forum Who Are You ? Who ? Who ?
    Replies: 0
    Last Post: 12-31-2007, 08:39 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •