to on caps lock key using C

please help me with the program that will on caps lock using C. i got his program from many sources but those are not giving me the result on my system(running win XP).
please tell me what is the problem with the program with the solution.
void main()
char far *scr=0x417;


  • This is not really a beginner task, it is somewhat tricky.

    First, that program isn't for Windows... maybe it will work on some ancient DOS computer.

    In Windows, you would like the Windows API function keybd_event() or some such. Needless to say, you need a Windows compiler to write Windows programs, so toss out Turbo C if you are using that one...

    Info regarding keybd_event() can be found in the Win API documentation:

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


In this Discussion