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; } }
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); }