KeyPress(",")
KeyPress("TAB")
KeyDown("CTRL")
KeyPress("SPACE")
KeyUp("CTRL")
KeyPress(",")
KeyDown("alt")
KeyPress("a")
KeyUp("alt")
KeyPress("ESC")
KeyDown("ctrl")
KeyPress("a")
KeyPress("x")
KeyUp("CTRL")
//在屏幕坐标(106, 630)单击鼠标左键
MouseLeftClick(106, 630)
Wait(100)
//在屏幕坐标(381, 492)单击鼠标右键
MouseRightClick(381, 492)
KeyPress("p")
Wait(100)
//读入数字0-9的图像文件到数组
LoadImage("h1.Sel", DigitImgs[1])
LoadImage("h2.Sel", DigitImgs[2])
LoadImage("h3.Sel", DigitImgs[3])
LoadImage("h4.Sel", DigitImgs[4])
LoadImage("h5.Sel", DigitImgs[5])
LoadImage("h6.Sel", DigitImgs[6])
LoadImage("h7.Sel", DigitImgs[7])
LoadImage("h8.Sel", DigitImgs[8])
LoadImage("h9.Sel", DigitImgs[9])
LoadImage("h0.Sel", DigitImgs[10])
LoadImage("1.Sel", DigitImgs1[1])
LoadImage("2.Sel", DigitImgs1[2])
LoadImage("3.Sel", DigitImgs1[3])
LoadImage("4.Sel", DigitImgs1[4])
LoadImage("5.Sel", DigitImgs1[5])
LoadImage("6.Sel", DigitImgs1[6])
LoadImage("7.Sel", DigitImgs1[7])
LoadImage("8.Sel", DigitImgs1[8])
LoadImage("9.Sel", DigitImgs1[9])
LoadImage("0.Sel", DigitImgs1[10])
LoadImage("b1.Sel", DigitImgs2[1])
LoadImage("b2.Sel", DigitImgs2[2])
LoadImage("b3.Sel", DigitImgs2[3])
LoadImage("b4.Sel", DigitImgs2[4])
LoadImage("b5.Sel", DigitImgs2[5])
LoadImage("b6.Sel", DigitImgs2[6])
LoadImage("b7.Sel", DigitImgs2[7])
LoadImage("b8.Sel", DigitImgs2[8])
LoadImage("b9.Sel", DigitImgs2[9])
LoadImage("b0.Sel", DigitImgs2[10])
//函数只能在”函数外面“定义,然后使用调用语句,函数定义的顺序无所谓:
myfunc()// 调用myfunc
Wait(100)
//运行程序"D:Seraph练习x.txt"
RunApp("D:Seraph练习1x.txt")
Wait(800)
KeyDown("CTRL")
KeyPress("a")
Wait(100)
KeyPress("x")
KeyPress("s")
KeyUp("CTRL")
//如果图像"输出文本图标.sel"在此时出现
if FindImageEx("输出文本图标.sel", Color(10, 10, 10), 372, 356, 928, 710, true, FoundX, FoundY) then
//在图像上的(5, 5)位置点击鼠标
MouseLeftClick(FoundX+5, FoundY+5)
end if
Wait(100)
//在屏幕坐标(109, 640)单击鼠标左键
MouseLeftClick(109, 640)
//在屏幕坐标(343, 443)单击鼠标右键
MouseRightClick(343, 443)
Wait(600)
KeyPress("p")
Wait(100)
KeyPress("LEFT")
KeyPress("LEFT")
KeyPress(".")
KeyPress("RETURN")
//等待2毫秒
Wait(2000)
KeyPress("RETURN")
//等待5毫秒
Wait(2000)
//在屏幕坐标(910, 654)单击鼠标左键
MouseLeftClick(910, 654)
Wait(100)
KeyPress("DOWN")
//在窗口坐标(546, 57)单击鼠标左键
MouseLeftClick(WinX0+546, WinY0+57)
wend//无限循环执行以上代码
end function
function myfunc
if ReadNumber(DigitImgs, 974, 523, 1017, 540, true, Num) then
//此时如果读取成功,数字被保存在变量 Num 中










