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);
                        }
                }
#2
Easy to look up things in QM search box right above editor field e.g. "capslock"


-->

Example:
Code:
Copy      Help
int wason=CapsLock(0) ;;must be off
key "Password"
if(wason) key K ;;restore

Don't know about QM3

S
#3
Thank you for your help, QM is too powerful, omnipotent Smile
#4
Look in Help:
ifk
key

QM3 will use standard C#.
#5
thanks,  Very looking forward, it will be very convenient  Tongue


Forum Jump:


Users browsing this thread: 1 Guest(s)