diff --git a/AutoLikerCefSharpWpf/Helper/JavaScriptBoundObject.cs b/AutoLikerCefSharpWpf/Helper/JavaScriptBoundObject.cs index e526e1b..95cd59b 100644 --- a/AutoLikerCefSharpWpf/Helper/JavaScriptBoundObject.cs +++ b/AutoLikerCefSharpWpf/Helper/JavaScriptBoundObject.cs @@ -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(); } } } diff --git a/AutoLikerCefSharpWpf/MainWindow.xaml.cs b/AutoLikerCefSharpWpf/MainWindow.xaml.cs index 7d2ba95..600434e 100644 --- a/AutoLikerCefSharpWpf/MainWindow.xaml.cs +++ b/AutoLikerCefSharpWpf/MainWindow.xaml.cs @@ -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);