Example #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);
 }
Example #2
0
 public PluginMethodReturnValueType Shell(KeyboardSendKeyEventArgs args)
 {
     KeyboardUtil.SendKeyEvent(args.Key);
     return null;
 }