// 启动脚本前请先将鼠标放到要后台的窗口,然后启动脚本,验证脚本正常运行后即可转为后台
UserVar MoShi=DropList=0 "设置模拟方式"
UserVar str1="这是自动喊的第1句话" "请输入自动叫喊的第1句话"
UserVar str2="这是自动喊的第2句话" "请输入自动叫喊的第2句话"
UserVar str3="这是自动喊的第3句话" "请输入自动叫喊的第3句话"
UserVar str4="这是自动喊的第4句话" "请输入自动叫喊的第4句话"
UserVar str5="这是自动喊的第5句话" "请输入自动叫喊的第5句话"
UserVar Yanshi=3000 "两句喊话之间的等待时间,1秒钟是1000"
//****************设置结束*****************
If MoShi=0 Then
SetSimMode 0
ElseIf MoShi=1 Then
SetSimMode 2
ElseIf MoShi=2 Then
SetSimMode 1
End If
Delay 500
Hwnd = Plugin.Window.MousePoint()
While 1
Call Plugin.Bkgnd.SendString(Hwnd, str1)
Call Plugin.Bkgnd.KeyPress(Hwnd, 13)
Delay Yanshi
Call Plugin.Bkgnd.SendString(Hwnd, str2)
Call Plugin.Bkgnd.KeyPress(Hwnd, 13)
Delay Yanshi
Call Plugin.Bkgnd.SendString(Hwnd, str3)
Call Plugin.Bkgnd.KeyPress(Hwnd, 13)
Delay Yanshi
Call Plugin.Bkgnd.SendString(Hwnd, str4)
Call Plugin.Bkgnd.KeyPress(Hwnd, 13)
Delay Yanshi
Call Plugin.Bkgnd.SendString(Hwnd, str5)
Call Plugin.Bkgnd.KeyPress(Hwnd, 13)
Delay Yanshi
//等待半分钟后,进行下一轮叫卖
Delay 29000
Wend