1. ASUS X450J/ Windows 10 Education version
2. Add Ref : https://inputsimulator.codeplex.com/
namespace ConsoleApplication1
{
using WindowsInput;
using WindowsInput.Native;
class Program
{
static void Main(string[] args)
{
InputSimulator im = new InputSimulator();
System.Threading.Thread.Sleep(1000);
im.Keyboard.ModifiedKeyStroke(VirtualKeyCode.CONTROL, VirtualKeyCode.SPACE);
Console.Write("輸入英文:");
Console.ReadLine();
System.Threading.Thread.Sleep(1000);
im.Keyboard.ModifiedKeyStroke(VirtualKeyCode.CONTROL, VirtualKeyCode.SPACE);
Console.Write("輸入中文:");
Console.ReadLine();
}
}
}
沒有留言:
張貼留言