十一岁的加重songxing10000…… ------ 回到博主首页

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

前提,已有登录过的账号,且没有设置为自动登录

 

tell application "QQ"

activate

tell application "System Events"

tell application process "QQ"

activate

set frontmost to true

key code {48, 51}

keystroke "QQ1号码"

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

 

posted @ 2017-04-05 23:35  songxing10000  阅读(780)  评论(1编辑  收藏  举报