原创:Mac AppleScript 自动登陆两个QQ

前提,已有登陆过的帐号,且没有设置为自动登陆app

 

tell application "QQ"spa

activatecode

tell application "System Events"blog

tell application process "QQ"it

activateio

set frontmost to trueclass

key code {48, 51}登录

keystroke "QQ1号码"command

delay 1密码

keystroke return

delay 1

keystroke "QQ1密码"

keystroke return

delay 1

delay 1

keystroke "n" using command down

delay 1

key code {48, 51}

keystroke "QQ2号码"

delay 1

keystroke return

delay 1

keystroke "QQ2密码"

delay 1

keystroke return

delay 1

end tell

end tell

end tell

相关文章
相关标签/搜索