Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Get or set the case status
#1
In QM2, how to get the case status and set the case status?  the following is the C# code  Huh

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

 
Code:
Copy      Help
 
                // 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);
                        }
                }


Messages In This Thread
Get or set the case status - by win - 06-26-2019, 08:20 PM
RE: Get or set the case status - by stupomer - 06-26-2019, 11:40 PM
RE: Get or set the case status - by win - 06-27-2019, 03:40 AM
RE: Get or set the case status - by Gintaras - 06-27-2019, 05:40 AM
RE: Get or set the case status - by win - 06-27-2019, 07:12 AM

Forum Jump:


Users browsing this thread: 3 Guest(s)