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), }); }
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)); }
public string Shell(MouseCursorClipArgs args) { var result = MouseUtil.CursorClip(args.Left, args.Top, args.Right, args.Bottom); return(JsonConvert.SerializeObject(result)); }