Automation 我如何访问Google';以编程方式搜索引擎结果,并使用自动热键获取第一个URL?

Automation 我如何访问Google';以编程方式搜索引擎结果,并使用自动热键获取第一个URL?,automation,autohotkey,Automation,Autohotkey,我想以编程方式访问谷歌的搜索引擎结果,并使用自动热键获取第一个URL 我可以访问谷歌视频搜索页面,但我不知道如何解析第一个视频URL Send ^c if !Html := UrlGet("https://www.google.com/search?tbm=vid&hl=en-TR&source=hp&biw=&bih=&q=%clipboard%") { MsgBox No data returned from Google.co

我想以编程方式访问谷歌的搜索引擎结果,并使用自动热键获取第一个URL

我可以访问谷歌视频搜索页面,但我不知道如何解析第一个视频URL

Send ^c
if !Html := UrlGet("https://www.google.com/search?tbm=vid&hl=en-TR&source=hp&biw=&bih=&q=%clipboard%") {
            MsgBox No data returned from Google.com
            return
        }

最简单的方法是使用一个

添加到您的代码中:

RegExMatch(Html, "O)<h3 class=""r""><a href=""([^""]+)""", m)
MsgBox, % "The first result is: " m.1
RegExMatch(Html,“O)