Re-enabling restart async callback

This commit is contained in:
Jack 2023-09-14 14:23:47 -04:00
parent c742979250
commit c821c49ef9
2 changed files with 3 additions and 12 deletions

View File

@ -23,6 +23,7 @@ namespace AutoLikerCefSharpWpf.Helper
{
Debug.WriteLine("SingleLeftClick: x = " + x + " ; y = " + y);
MouseMoveEvent(x, y); // first move mouse to button
Thread.Sleep(500); // and then wait a bit
this.Main.Browser.GetBrowser().GetHost().SendMouseClickEvent(x, y, MouseButtonType.Left, false, 1, CefEventFlags.None);
System.Threading.Thread.Sleep(100);
this.Main.Browser.GetBrowser().GetHost().SendMouseClickEvent(x, y, MouseButtonType.Left, true, 1, CefEventFlags.None);
@ -73,7 +74,7 @@ namespace AutoLikerCefSharpWpf.Helper
public void RestartProcess()
{
//this.Main.LoadInstragramTag();
this.Main.LoadInstragramTag();
}
}
}

View File

@ -1,20 +1,10 @@
using AutoLikerCefSharpWpf.Helper;
using CefSharp;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
namespace AutoLikerCefSharpWpf
{
@ -31,7 +21,7 @@ namespace AutoLikerCefSharpWpf
InitializeComponent();
// version
this.AutoLikerVersion = "v2.0.0-20230912";
this.AutoLikerVersion = "v2.0.1-20230914";
this.DataContext = this;
// manage settings in UI
this._alsm = new AutoLikerSettingsManager(this);