Пример #1
0
        protected override Script StartRecord()
        {
            var script = new Script();

            script.DoDelay(() => 100);
            script.DoDelay(() => {
                NativeApiWrapper.InitGameInstance();
                return(1.5);
            });
            script.DoInput(() => InputCodes.Space);
            script.DoInput(() => InputCodes.Space);
            script.DoInput(() => InputCodes.Space);
            script.DoMouseMoveWithClick(() => new System.Drawing.Point(344, 448)); //go to password box
            script.DoInputWithModifiers(() => {
                Clipboard.SetText(Settings.Password);
                return(Ctrl_V);
            });
            script.DoMouseMoveWithClick(() => new System.Drawing.Point(564, 425)); // click login
            script.DoInput(() => InputCodes.Return, 10);
            return(script);
        }
Пример #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            NativeApiWrapper.InitGameInstance();
            RelogScript aqueducProfile = new RelogScript();

            aqueducProfile.Run();
            //ReturnToHideoutScript gameRunScript = new ReturnToHideoutScript();
            //gameRunScript.Run();
            ////AqueductNewAreaScript aqueductNewAreaScript = new AqueductNewAreaScript();
            ////aqueductNewAreaScript.Run();


            //LogFileReader logFileReader = new LogFileReader();
            //logFileReader.NewData += LogFileReader_NewData;
            ////AvailableInput.MouseMove(new Point(50, 50));
            ////AvailableInput.Input(InputCodes.LButton);
            ////AvailableInput.Input(InputCodes.Return);
            ////AvailableInput.InputCombination(InputCodes.ControlKey, InputCodes.V);

            ////ItemFactory itemFactory = new ItemFactory();
            ////var item = itemFactory.GetModel();
            ////var res = Settings.Pickit.IsValid(item);
        }