Autohotkey 登录 Yahoo 邮箱

Autohotkey 登录 Yahoo 邮箱

如何让 Autohotkey 运行我的 Yahoo 邮件帐户并用一个热键输入我的密码?我可以让它显示 Yahoo 登录页面,但不能输入我的密码。

答案1

以下是一些示例,这里使用 IE 实例和 DOM:

`(oIE:=ComObjCreate("InternetExplorer.Application"))
.navigate("https://login.yahoo.com/config/login_verify2?&.src=ym&.intl=us")
oIE.top:=oIE.left:=0, oIE.width:=A_ScreenWidth, oIE.height:=A_ScreenHeight

While, oIE.busy
   Sleep, 500

nodes:=(doc:=oIE.document).querySelector("#inputs")
Loop, 2
   newValue%A_Index%:=doc.createAttribute("value")
 , newValue%A_Index%.nodeValue:=A_Index=1 ? "LOGIN":"PASSWORD"
 , nodes.children[A_Index-1].setAttributeNode(newValue%A_Index%)
oIE.visible:=True, doc.querySelector("#submit").children[0].click(), oIE:=""

相关内容