How would I go about turning caps lock on or off in a dos program?
Please help.
How would I go about turning caps lock on or off in a dos program?
Please help.
tudehopet uses Borland Compiler 5.5
and Visual C++ 6.
First be sure you #include <windows.h>, then do this:
SendMessage(NULL, WM_KEYDOWN, (WPARAM) VK_CAPITAL, (LPARAM) 0);
Website(s): http://www16.brinkster.com/trifaze/
E-mail: [email protected]
---------------------------------
C++ Environment: MSVC++ 6.0; Dev-C++ 4.0/4.1
DirectX Version: 9.0b
DX SDK: DirectX 8.1 SDK
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.
tudehopet uses Borland Compiler 5.5
and Visual C++ 6.
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.
C++
The best