原创: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