Пример #1
0
 public PluginMethodReturnValueType Shell(MouseCursorClipArgs args)
 {
     var result = MouseUtil.CursorClip(args.Left, args.Top, args.Right, args.Bottom);
     return new PluginMethodReturnValueType()
     {
         DataType    = PluginMethodReturnValueType.StringDataType,
         Data        = JsonConvert.SerializeObject(result),
     };
 }
Пример #2
0
 public static string MakeMouseCursorClipCommand(int left, int top, int right, int bottom)
 {
     var args = new MouseCursorClipArgs()
     {
         Left    = left,
         Top     = top,
         Right   = right,
         Bottom  = bottom,
     };
     var argsSerialize = JsonConvert.SerializeObject(args);
     return PluginCommandSerializeMaker.MakeCommand(InnerPluginName, "MouseCursorClip", argsSerialize);
 }
Пример #3
0
 public string Shell(MouseCursorClipArgs args)
 {
     var result = MouseUtil.CursorClip(args.Left, args.Top, args.Right, args.Bottom);
     return JsonConvert.SerializeObject(result);
 }