In QM2, how to get the case status and set the case status? the following is the C# code
In addition, I want to know, in QM3, can I use C# code directly? Is the syntax of QM3 exactly the same as C#? Any suggestions are welcome, thanks in advance
In addition, I want to know, in QM3, can I use C# code directly? Is the syntax of QM3 exactly the same as C#? Any suggestions are welcome, thanks in advance
// Get case status True is uppercase False is lowercase
public static bool CapsLockStatus
{
get
{
byte[] bs = new byte[256];
GetKeyboardState(bs);
return (bs[0x14] == 1);
}
}
// Set case status
public static void SetCapsLock(bool result)
{
if (CapsLockStatus != result)
{
KeyBoardDo(20);
}
}