# 如何在Py或AHK等脚本中跳转到Edge浏览器内置页面（如edge://extensions/）

**URL:** <https://meta.appinn.net/t/topic/94503>\
**Category:** 问题求助\
**Created:** [2026 年10 月 26 日 05:54 UTC](https://meta.appinn.net/t/topic/94503 "2026-10-26T05:54:15Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

作者： ![dshuiewhui](https://meta-edge.appinn.com/user_avatar/meta.appinn.net/dshuiewhui/32/80496_2.png) [@dshuiewhui](https://meta.appinn.net/u/dshuiewhui)\
发布日期： [2026 年10 月 26 日 05:54 UTC](https://meta.appinn.net/t/topic/94503/1 "2026-10-26T05:54:15Z")

</div>

如题， 如何在Py或AHK等脚本中跳转到Edge浏览器内置页面（如edge://extensions/)？

---

<div class="post-metadata">

作者： ![Junkai\_Wu](https://meta-edge.appinn.com/user_avatar/meta.appinn.net/junkai_wu/32/72313_2.png) [@Junkai\_Wu](https://meta.appinn.net/u/Junkai_Wu)\
发布日期： [2026 年10 月 27 日 14:07 UTC](https://meta.appinn.net/t/topic/94503/2 "2026-10-27T14:07:39Z")

</div>

你用win+r输入`microsoft-edge:edge://extensions/`看看能不能打开，能打开按这个思路让ai去处理

我本地并无edge无法帮你测试，这个是我23年左右收藏的方案，那时候是可以用的

---

<div class="post-metadata">

作者： ![wdssmq](https://meta-edge.appinn.com/user_avatar/meta.appinn.net/wdssmq/32/9783_2.png) [@wdssmq](https://meta.appinn.net/u/wdssmq)\
发布日期： [2026 年10 月 27 日 15:12 UTC](https://meta.appinn.net/t/topic/94503/3 "2026-10-27T15:12:58Z")

</div>

好像不行，会打开一个空白页

---

<div class="post-metadata">

作者： ![18CM](https://meta-edge.appinn.com/letter_avatar_proxy/v4/letter/1/3ab097/32.png) [@18CM](https://meta.appinn.net/u/18CM)\
发布日期： [2026 年10 月 27 日 15:43 UTC](https://meta.appinn.net/t/topic/94503/4 "2026-10-27T15:43:38Z")

</div>

不能打开内置，那就模拟操作咯  
1.打开 edge  
2.通过uia操作edge地址栏输入并回车

让 ai 写了几行powershell 测试(复制粘贴测试必须保留最后一行空白，不然没回车没办法模拟发送回车)

```powershell
$ErrorActionPreference = 'Stop'
Add-Type -AssemblyName UIAutomationClient
Add-Type -AssemblyName UIAutomationTypes

$edgeExe = 'C:\Program Files (x86)\Microsoft\EdgeCore\155.0.4283.62\msedge.exe'
$url = 'edge://extensions/'

function Get-EdgeWindowProcess {
    Get-Process -Name msedge -ErrorAction SilentlyContinue |
        Where-Object { $_.MainWindowHandle -ne 0 } |
        Select-Object -First 1
}

$edgeProcess = Get-EdgeWindowProcess
$hadWindow = $null -ne $edgeProcess

if (-not $hadWindow) {
    Start-Process -FilePath $edgeExe | Out-Null
}

$watch = [System.Diagnostics.Stopwatch]::StartNew()
while (-not $edgeProcess -and $watch.Elapsed.TotalSeconds -lt 15) {
    $edgeProcess = Get-EdgeWindowProcess
    if (-not $edgeProcess) {
        [System.Threading.Thread]::Yield() | Out-Null
    }
}
if (-not $edgeProcess) {
    throw '超时：没有找到 Edge 窗口。'
}

$wshell = New-Object -ComObject WScript.Shell
if (-not $wshell.AppActivate([int]$edgeProcess.Id)) {
    throw '无法激活 Edge 窗口。'
}

if ($hadWindow) {
    $wshell.SendKeys('^t')
}
$wshell.SendKeys('^l')

$watch.Restart()
$valuePattern = $null

while (-not $valuePattern -and $watch.Elapsed.TotalSeconds -lt 5) {
    try {
        $focused = [System.Windows.Automation.AutomationElement]::FocusedElement
        if ($focused.Current.ControlType -eq
            [System.Windows.Automation.ControlType]::Edit) {
            $pattern = $null
            if ($focused.TryGetCurrentPattern(
                [System.Windows.Automation.ValuePattern]::Pattern,
                [ref]$pattern
            )) {
                $valuePattern = $pattern
            }
        }
    } catch {}

    if (-not $valuePattern) {
        [System.Threading.Thread]::Yield() | Out-Null
    }
}

if (-not $valuePattern) {
    throw '超时：UIA 没有取得支持 ValuePattern 的地址栏。'
}

$valuePattern.SetValue($url)
$wshell.SendKeys('{ENTER}')

```

---

<div class="post-metadata">

作者： ![Florian](https://meta-edge.appinn.com/letter_avatar_proxy/v4/letter/f/898d66/32.png) [@Florian](https://meta.appinn.net/u/Florian)\
发布日期： [2026 年10 月 27 日 19:45 UTC](https://meta.appinn.net/t/topic/94503/5 "2026-10-27T19:45:06Z")

</div>

出现空白页说明浏览器其实已经启动了，只是 edge:// 这类特权地址在传入的过程中被丢掉了。在地址栏里输入这个地址属于浏览器内部发起的导航，和把 URL 交给负责启动浏览器的那个进程走的是两条不同的路径。

---

<div class="post-metadata">

作者： ![patpat](https://meta-edge.appinn.com/user_avatar/meta.appinn.net/patpat/32/60426_2.png) [@patpat](https://meta.appinn.net/u/patpat)\
发布日期： [2026 年10 月 28 日 00:24 UTC](https://meta.appinn.net/t/topic/94503/6 "2026-10-28T00:24:47Z")

</div>

如果不能一步到位，那考虑半自动？

先启动Edge浏览器  
使用Eged的快捷键，将焦点聚焦到地址栏  
粘贴内置页面的命令，回车
