Course registration by a ‘robot’ :)

Everyone knows, course registration is the suckiest part of the semester. Apart from the fucked up ISAS portal, its because of the following steps that each one of us needs to perform -

1) Fill up the form in a damn hurry.
2) Check if all the courses are entered properly.
3) Click the ‘Update’ button.
4) Hope that you are in.

Now, step 2 is a very big problem. If you do it, you are late, and if you don’t, you may be dead before you know it. So, I decided to let my computer take control of step 1. Hence, started searching if there is anything that can automatically type letters, and found a Java class called ‘Robot’. Without wasting any time, wrote a simple program that can fill my form just as I would possibly have done. Here it goes, entering my courses…

—Start Program—


import java.awt.Robot;

class CourseRegistration {

    private static Robot robot;

    public static void Type(int key) {

        robot.keyPress(key);
        robot.keyRelease(key);
    }

    public static void FillForm(){

        int i;
        // Select the first field by pressing a 'TAB'
        Type(9);
        // Register for Major Project II by pressing 'M' 3 times
        for (i=0;i<3;i++) Type('M');
        // Select the next field by pressing 'TAB' 3 times
        for (i=0;i<3;i++) Type(9);
        // Register for Project (4 C 7th sem) by Pressing 'P' 18 times
        for (i=0;i<18;i++)Type('P');
        // Select the next field by pressing 'TAB' 3 times
        for (i=0;i<3;i++) Type(9);
        // Register for Linear Programming by pressing 'L' 5 times
        for (i=0;i<5;i++) Type('L');
        // Select the next field by pressing 'TAB' 3 times
        for (i=0;i<3;i++) Type(9);
        // Register for English Literature by pressing 'E' 8 times
        for (i=0;i<8;i++) Type('E');
        // Finally, just to be safe, press a 'TAB'
        Type(9);
        // Done!
    }

    public static void main(String[] args) {

        try {
            Thread.sleep(1000);
            robot = new Robot();
            FillForm();
        } catch (Exception e) {
        }
    }
}

—End Program—

Steps (although quite obvious) one need to follow after making suitable changes are -
1) Open the special registration page.
2) Make the fields ‘—None—’ and set the mark above the actual form.
3) Compile the program.
4) Run it and alt-tab the special registration page within 1 sec.
5) Update and be happy.

PS0) May be some of us already knew about it. Anyways its interesting.
PS1) Found “Motto : ?” written on our colleges’ wiki page. No offence but that seems true.
PS2) Happy next sem to all of you. :)

samwise

23 Responses to “Course registration by a ‘robot’ :)”

  1. Shubham Gupta Says:

    Cool be!
    But try to use better words. Afterall its a public forum young man. :P

  2. Meghna Says:

    Awesome :)

  3. Animesh Says:

    nice be! definitely tryable :)

  4. Kulbir Saini Says:

    How I wonder what is Java :P BTW nice hack … :D

  5. Dr. Manhattan Says:

    Oh God, save isas server, when all the 150 ppl in the batch start using these kind of robots during registration.

    Why mercy ?
    make it Thread.sleep(1);
    or even while(1) FillForm();

    • MaVeRiK Says:

      You could as well have pressed alt+tab and saved urself a second…… ;)
      and may be even say
      while(time<10:30);
      FillForm();

      to save the trouble of execution at the correct time :P

  6. ankitwise Says:

    Thanks everyone :)

  7. MaVeRiK Says:

    Gud hack dude !!
    Does it work :P

  8. Newmoon Says:

    Nice trick up your sleeve, ankitwise :)

  9. Raina Says:

    Nice :) But, suckiest?! What does that mean? :|

  10. Robot form submission – Part 2 « Just Another Blog Says:

    [...] computers, fun, iiit, internet ·Tagged bash, curl, firefox, hack, isas Ankit wrote a nice post about using Java to fill up a form, which is a FCFS allocation (can’t they just *provide* a [...]

  11. sundeep Says:

    nice trick :)

  12. Anonymous Says:

    I appreciate what you have done. Nice hack.

    You could have as well shared it before the course registration started. Doing that way would have the better:
    1) Your hack could have become more popular.
    2) Your selfish motto could have been in community service.

    I hope you would contribute to ISAS for getting around such hacks.

    • ankitwise Says:

      actually I wrote it on 10th morning itself (the day of registration), so did not get enough time to post it. Anyways, it can be used in future registrations, and not only for courses, for ITWS 3 project registration and likewise as well.

  13. A Course submission by a ‘Human’! « Pensieve Says:

    [...] Course submission by a ‘Human’! Ankit wisely wrote in his blog aptly titled ankitwise and provided all IIIT’ians with a new and effective way of surpassing [...]

  14. koi bhi Says:

    Aye hai.. mere slim shady… Ab hacker ban gaya tu…
    Appaji will be proud of you.

  15. ankitwise Says:

    @Animesh I was not sure of the exact time, so was immersed in the youtube videos:)
    and whats really important is that I got it, isn’t that enough ?


Leave a Reply