Skip to content

Commit

Permalink
fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
FrySimpl3 committed Nov 21, 2022
1 parent 0aae34d commit 29e91d5
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Free_key_vnhax/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,13 @@ static void Main(string[] args)
chromeDriver.Navigate();
IJavaScriptExecutor js = chromeDriver as IJavaScriptExecutor;
var dataFromJS = (string)js.ExecuteScript("var content = document.getElementsByClassName('container')[1].children[0].innerText;var txt = content.substring(content.indexOf(\":\")+2);return txt;");
Console.WriteLine(dataFromJS);
Console.ReadKey();
string _key = dataFromJS.Trim();
MessageBox.Show("Key đã lấy thành công, đã copy key vào bộ nhớ tạm!");
Console.WriteLine(_key);
if (_key.Length != 0)
{
Console.Beep(400, 400);
MessageBox.Show("Key đã lấy thành công, đã copy key vào bộ nhớ tạm!");
}
chromeDriver.Quit();
Process.Start(new ProcessStartInfo
{
Expand All @@ -133,7 +136,6 @@ static void Main(string[] args)
CreateNoWindow = true,
UseShellExecute = false
}).WaitForExit();
Console.Beep(400, 400);
Clipboard.SetText(_key);
}
}
Expand Down

0 comments on commit 29e91d5

Please sign in to comment.