How would I go about turning caps lock on or off in a dos program?
Please help.
Printable View
How would I go about turning caps lock on or off in a dos program?
Please help.
First be sure you #include <windows.h>, then do this:
SendMessage(NULL, WM_KEYDOWN, (WPARAM) VK_CAPITAL, (LPARAM) 0);
I have seen some nice one-line functions for toggling Caps Lock on/off, maybe here: http://www.cprogramming.com/source/caps.zip
Thanks for the help guys.;)
I hope you try this one...
I have this in my notes.Code:*(char far *)1047 |= 64;
That will get it on.... i think so.