Example #1
0
        public void BookmarkByOverview(string BookmarkName)
        {
            IMemoryMeasurement measurement;
            WindowMotor        motor = new WindowMotor(EveMainWindow.Value);

            Sanderling.Motor.WindowMotor.EnsureWindowIsForeground(EveMainWindow.Value);
            var response = sensor?.MeasurementTakeNewRequest(EveClientId.Value);

            do
            {
                response = sensor?.MeasurementTakeNewRequest(EveClientId.Value);
            } while (null == response);

            measurement = response?.MemoryMeasurement?.Value;
            var overview = measurement.WindowOverview.FirstOrDefault();

            var entry       = overview.ListView.Entry.FirstOrDefault();
            var motionParam = entry.MouseClick(MouseButtonIdEnum.Right);

            motor.ActSequenceMotion(motionParam.AsSequenceMotion(measurement));


            do
            {
                response = sensor?.MeasurementTakeNewRequest(EveClientId.Value);
            } while (null == response);
            measurement = response?.MemoryMeasurement?.Value;
            Sanderling.Interface.MemoryStruct.IMenu menu = measurement.Menu.FirstOrDefault();
            BookmarkByMenu(measurement, menu, "Save Location", BookmarkName);
        }
Example #2
0
        public Menu(MemoryStruct.IMenu raw)
        {
            this.raw = raw;

            Entry = raw?.Entry?.Select(entry => entry?.Parse())?.ToArray();
        }
Example #3
0
 static public IMenu Parse(this MemoryStruct.IMenu raw) =>
 null == raw ? null : new Menu(raw);
Example #4
0
 static public MemoryStruct.IMenuEntry EntryFirstMatchingRegexPattern(
     this MemoryStruct.IMenu menu,
     string regexPattern,
     RegexOptions regexOptions = RegexOptions.None) =>
 null == regexPattern ? null :
 menu?.Entry?.FirstOrDefault(entry => entry?.Text?.RegexMatchSuccess(regexPattern, regexOptions) ?? false);
Example #5
0
		public Menu(MemoryStruct.IMenu raw)
		{
			this.raw = raw;

			Entry = raw?.Entry?.Select(entry => entry?.Parse())?.ToArray();
		}