0
我试图在AppleScript中创建代码,每1-2秒钟会随机点击我的鼠标......我想要一个视频游戏,我玩的不知道或能够告诉一个机器人正在为我点击,所以我需要它是随机的...不是每秒或每2秒,而是每隔x秒,其中x是1到2秒之间不断变化的变量...这是迄今为止的代码,但是其卡每1秒:AppleScript随机浮动返回
on idle
tell application "System Events"
key code 87
end tell
return 1
end idle
我想改变return 1
到return random number 1 to 2
会工作
事情是这样的:
,但它没有工作/: