|
1.如何出现提示对话框
答:代码如下:
[-] testcase TestWin ()
[ ] string strHello
[ ] strHello = "Hello"
[ ] Agent.DisplayMessage ("Hello",strHello)
2.创建函数
答:先创建代码,后引用,代码如下:
[-] boolean hello(string strHello)
[ ]
[ ] Agent.DisplayMessage ("Hello",strHello)
[ ]
[ ] return true
[ ]
[-] testcase TestWin ()
[ ] string strHello
[ ] strHello = "Hello"
[ ] hello(strHello)
3.如何引用外部文件
答:用use关键字
4.按住鼠标操作移动可以录制么?
答:可以的,mainwin中有鼠标函数,代码如下
MainWin.PressMouse (1, 100, 100)
MainWin.MoveMouse (100, 101)
MainWin.MoveMouse (100, 102)
MainWin.ReleaseMouse (1, 100, 103)// events released |
|