AutoIt - 如何点击 link 匹配特定模式
AutoIt - How to click on a link matches a certain pattern
我需要能够搜索网页的源代码
对于 link 匹配特定模式
如果有匹配 - 在新 window 中打开它。
我不关心浏览器,可以是 IE 或 Chrome.
到目前为止我能够实现的(甚至不接近我需要的)是这样的:
MsgBox(0,"message box",StringRegExp("www.example.com/d12345/abcde.html","www.example.com/d\d*/abcde.html"))
所以基本上,如果源代码中存在字符串 www.example.com/d12345/abcde.html,我会在 return 中得到“1”。
我需要的是,
如果字符串与模式匹配 - 在新的 window 中打开 link。
有人可以建议如何实现这一目标吗?
感谢您的帮助。
- 获取文件中的所有链接(完整 url)。
- 通过这些链接搜索您的比赛
- 如果匹配则 Shell 执行 url。
我需要能够搜索网页的源代码 对于 link 匹配特定模式 如果有匹配 - 在新 window 中打开它。 我不关心浏览器,可以是 IE 或 Chrome.
到目前为止我能够实现的(甚至不接近我需要的)是这样的:
MsgBox(0,"message box",StringRegExp("www.example.com/d12345/abcde.html","www.example.com/d\d*/abcde.html"))
所以基本上,如果源代码中存在字符串 www.example.com/d12345/abcde.html,我会在 return 中得到“1”。 我需要的是, 如果字符串与模式匹配 - 在新的 window 中打开 link。 有人可以建议如何实现这一目标吗?
感谢您的帮助。
- 获取文件中的所有链接(完整 url)。
- 通过这些链接搜索您的比赛
- 如果匹配则 Shell 执行 url。