03-02-2006, 07:40 PM
03-02-2006, 08:27 PM
This is the best i can offer, i'm not sure if theres a better way. Windows only aswell.
Code:
#include "windows.bi"
Option Explicit
While Inkey$ <> Chr(27)
Locate 1, 1
If GetKeyState(VK_CAPITAL) <> 0 Then
Print "CAPS LOCK - ON "
Else
Print "CAPS LOCK - OFF"
End If
Sleep 100
Wend
03-03-2006, 07:12 AM
You can make sure that CAPS LOCK is on,
but that won't prevent the user from turning it OFF just when you thought it was ON.
The same applies for the NUM LOCK.
*****
but that won't prevent the user from turning it OFF just when you thought it was ON.
The same applies for the NUM LOCK.
*****