示例#1
0
        public void KeyUp(char key)
        {
            switch (mWinType)
            {
            case EnumWindowsType.Win64:
                WinIO64.KeyUp((Keys)key);    //按下
                break;

            case EnumWindowsType.Win32:
                WinIO32.KeyUp((Keys)key);    //按下
                break;

            default:
                break;
            }
        }
示例#2
0
        public bool Initialize(EnumWindowsType winType)
        {
            mWinType = winType;
            switch (mWinType)
            {
            case EnumWindowsType.Win64:
                WinIO64.Initialize();
                break;

            case EnumWindowsType.Win32:
                WinIO32.Initialize();
                break;

            default:
                return(false);
            }

            return(true);
        }