123 Eng

Engineering the engineers™


Latest Jobs   Forum Map

 


Home
Source Codes
Engineering Colleges

Training  Reports
Seminar Reports
Placement Papers

Forums

   Computer Science / IT
   Electronics
   Electrical
   Mechanical
   Chemical
   Civil

   CAT / MBA

   GMAT / Foreign MBA
Latest Jobs

Engineering Jobs / Technical Jobs
Management Jobs

Sitemap
Terms of use

Displaying  Source Code(s)  
 

 
Program to set on / off the caps lock , scrolllock, numlock.

--------------------------------------------------------------------------------

Description : This Program can set on / off the caps lock , scrolllock, numlock.

// By: Rakesh Juyal //
// I.T.S. Mohan Nagar, Gzb //
// mailme: juyalrules@yahoo.com //
// mailme: rakesh@mindless.com //

#include"stdio.h"
#include"conio.h"

void main()
{
char ch;
char far *memory1=(char far *)0x417;
char far *memory2=(char far *)0x418;

clrscr();
printf("

'C' -=:=- CapsLock.");
printf("
'N' -=:=- NumLock.");
printf("
'S' -=:=- ScrollLock.");
printf("
<ESC> -=:=- Escape");

while(1)
{
ch=getch();
if(ch==0x1b)
break;

switch(ch)
{
case 'c':
case 'C':
*memory1=*memory1 ^ 64;
break;
case 'n':
case 'N':
*memory1=*memory1 ^ 32;
break;
case 's':
case 'S':
*memory1=*memory1 ^ 16;
break;
}
}
}

 

Contribute content or training reports / feedback / Comments
job placement papers
All rights reserved copyright 123ENG