I want to toggle caps, num or scroll lock using c++ program on a unix machine. Can some one help?

Recommended Answers

All 3 Replies

Hi Cosi,

Thanks for replying.
I tried the sites mentioned by you. But they don't show the sources. I have come across a source that could toggle caps lock on and off but on a Windows/Dos operating system using POKEB or PEEKB functions including in header file DOS.H, which is not helpful, as I have to run the program on a Unix (SCO Unixware) Operating system on which dos.h cannot be run. Can you or any one suggest what functions are available on Unix Operating system like POKEB or PEEKB on Windows/Dos operating system. :p

Uhh.. I clearly see that tleds has source code on their website. Check again. At any rate, you may do an exec C function to call the program setleds. This will also work.

Ed

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.