Last active
May 9, 2023 18:54
-
-
Save seieric/644496e1d275afa3ea9a871d95719e82 to your computer and use it in GitHub Desktop.
Google Chromeに1クリックで自動的にログイン / Log in to Google Chrome automatically with only one click (PowerShell)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Add-Type -AssemblyName System.Windows.Forms; | |
| $login_email = "[email protected]"; #Your login e-mail address | |
| $passwd = "example_password"; #Your password | |
| Start-Process chrome.exe -ArgumentList "https://accounts.google.com/signin/chrome/sync/identifier?ssp=1&continue=https%3A%2F%2Fwww.google.com%2F&flowName=GlifDesktopChromeSync" -PassThru; | |
| Start-Sleep -s 3; | |
| [System.Windows.Forms.SendKeys]::SendWait($login_email); | |
| Start-Sleep -m 100; | |
| [System.Windows.Forms.SendKeys]::SendWait("{ENTER}"); | |
| Start-Sleep -m 1500; | |
| [System.Windows.Forms.SendKeys]::SendWait($passwd); | |
| Start-Sleep -m 100; | |
| [System.Windows.Forms.SendKeys]::SendWait("{ENTER}"); | |
| Start-Sleep -m 1500; | |
| [System.Windows.Forms.MessageBox]::Show("Logged in!", "Google Chrome", "OK", "Information"); | |
| exit; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment