Hi All
With the code below, I change the Caps Lock state and switch to Caps Mode. No problem so far, But ;
-There is no change in the appearance of the Led light of Caps Lock.
-This change only affects my program, other programs in the system are not affected by it.
What do you think could be the reason and solution for this?
procedure TForm1.FormCreate(Sender: TObject);
var
KeyState : TKeyboardState;
begin
GetKeyboardState(KeyState);
if (KeyState[VK_CAPITAL] = 0) then
begin
KeyState[VK_CAPITAL] := 1;
SetKeyboardState(KeyState);
end;
end;