【AppleScript】使用脚本编辑器编写自动登录QQ脚本并生成App

极有可能遇到的问题

在这里插入图片描述

解决方法

在这里插入图片描述
在这里插入图片描述

脚本代码

tell application "QQ"
	activate
	tell application "System Events"
		tell application process "QQ"
			activate
			set frontmost to true
			key code {
    
    48, 51}
			keystroke "QQ账号"
			delay 1
			keystroke return
			delay 1
			keystroke "QQ密码"
			keystroke return
		end tellQQaa
	end tell
end tell

生成App

在这里插入图片描述

附1:AppleScript基础

初识 AppleScript

附2:脚本编辑器使用手册

《脚本编辑器使用手册》

猜你喜欢

转载自blog.csdn.net/weixin_43359312/article/details/107937284