Tuesday, 9 April 2013

Alarm on your PC

We often use alarm or timer in our mobiles.. Why not use the same on our PC??

If I want to put an alert for some task or something do I need to have my mobile phone definitely with me??
We might be lazy to pick it up if it is a bit far from us.. and in fact i am one in them..  ;)

Well then we can have an alarm on our laptop or PC
We may have many apps for an alert on our system (well I don't know whether there are any), but I have tried one on my own.. Its good to have something, that we made, working for us, right?? So, I have been using this from quite few days.. 

You can download the source code and a music file which I set as ring tone for this application in the link I have given below.


To make look more convincing make a batch file for the program

Compile and run the source file.

Make sure that the music .wav file we use to set as alert tone is in the same folder in which the source and class files are present

now open notepad


Type the following code as it is making changes where mentioned
 @echo off
(the following steps are written assuming that the source file is alarm.java and it is in a folder named java in  F:\ drive)
F:
cd java
javac alarm.java
appletviewer alarm.java
exit

Save the file with name alarm and .bat extension

Create a shortcut for this batch file(.bat) on desktop

Go to properties of shortcut and in shortcut tab click on change icon

In the windows default icons you can see a symbol similar to a clock. You can choose that or you can browse for any icon (.ico) file in you system.

Now if you run this short cut, Directly the applet opens prompting for the alarm time.. 

DOWNLOAD THIS HERE:   AlarmApp

No comments:

Post a Comment