Exemplo n.º 1
0
 public static string MakeKeyboardSendKeyEventCommand(VirtualKey key)
 {
     var args = new KeyboardSendKeyEventArgs()
     {
         Key         = key,
     };
     var argsSerialize = JsonConvert.SerializeObject(args);
     return PluginCommandSerializeMaker.MakeCommand(InnerPluginName, "KeyboardSendKeyEvent", argsSerialize);
 }
Exemplo n.º 2
0
 public PluginMethodReturnValueType Shell(KeyboardSendKeyEventArgs args)
 {
     KeyboardUtil.SendKeyEvent(args.Key);
     return null;
 }