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
August 11, 2009 at 14:37
Cool be!
But try to use better words. Afterall its a public forum young man.
August 13, 2009 at 10:27
ok uncle !
August 11, 2009 at 14:51
Awesome
August 11, 2009 at 15:00
nice be! definitely tryable
August 11, 2009 at 15:18
How I wonder what is Java
BTW nice hack …
August 13, 2009 at 10:29
I am blessed !
August 11, 2009 at 16:31
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();
August 11, 2009 at 16:59
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
August 11, 2009 at 17:04
@Dr. Manhattan you rock
@MaVeRiK as u can see, its open source… u can obviously modify it to suit ur needs better
August 11, 2009 at 16:36
Thanks everyone
August 11, 2009 at 16:39
Gud hack dude !!
Does it work
August 11, 2009 at 20:14
try try
August 11, 2009 at 18:31
Nice trick up your sleeve, ankitwise
August 11, 2009 at 20:04
Nice
But, suckiest?! What does that mean?
August 11, 2009 at 20:11
Thanks… and check this out
http://en.wiktionary.org/wiki/suckiest
August 11, 2009 at 22:46
[...] 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 [...]
August 12, 2009 at 05:21
nice trick
August 12, 2009 at 09:01
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.
August 12, 2009 at 10:10
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.
August 12, 2009 at 11:07
still u ranked 16 in LP waiting list
August 12, 2009 at 10:31
[...] 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 [...]
August 12, 2009 at 22:26
Aye hai.. mere slim shady… Ab hacker ban gaya tu…
Appaji will be proud of you.
August 12, 2009 at 11:28
@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 ?