其中的“16”是什么意思,怎么看都不懂,望大家指点作者: lantianwei 时间: 2007-11-30 19:00
按照你的题意我觉得16应该换成"Mercury",不知道我说的对不对作者: vincenthan 时间: 2007-12-3 10:13
更让我不解的是其中的Mercury对象,是什么意思,哪里能找到相关的帮助,希望高人能指教一下作者: yzem99 时间: 2007-12-3 10:57
Set dr = CreateObject("Mercury.DeviceReplay")
我理解这个是设一个可以做回放操作的对象。作者: jifeng 时间: 2007-12-3 11:12
哪来的这段文字阿?
我记得帮助里关于GetTextLocation不是这样描述的阿作者: 板砖 时间: 2007-12-3 12:08
不懂.作者: LittleDuck 时间: 2007-12-3 16:51
"Device Replay"是在提供坐标位置以后可以实现的鼠标和键盘操作。这个函数不能自动录制,需要在expert view中编程。
它有以下这些函数:
MouseMove x, y: Move the mouse to the screen coordinate (x,y).
MouseClick x, y, button: Move the mouse to the screen coordinate (x,y) and click the button(0=left; 1=middle; 2=right).
MouseDblClick x, y, button: Move the mouse to the screen coordinate (x,y) and double-click the button(0=left; 1=middle; 2=right).
DragAndDrop x, y, dropx, dropy, button: Drag the mouse from screen coordinate (x,y) to (dropx,dropy) with the button(0=left; 1=middle; 2=right) pressed.
PressKey key: Press a key using the ASCII code of the key.For example, Chr(13), vbCR and vbTab.
MouseDown x, y, button: Press the mouse button on screen coordinate (x,y).
MouseUp x, y, button: Release the mouse button on screen coordinate (x,y).
KeyDown key: Press a key using the ASCII code of the key.For example, Chr(13), vbCR and vbTab.
KeyUp key: Release a key using the ASCII code of the key.For example, Chr(13), vbCR and vbTab.
SendString string: Type a string.作者: vincenthan 时间: 2007-12-3 18:01
关于我3楼的提问还是没懂作者: walker1020 时间: 2007-12-3 21:35
查看一下帮助里面对 GetTextLocation的说明,不就明白了吗? 另外,楼主的代码是从哪里找到的?作者: xazaj 时间: 2007-12-3 22:30
这段说明说的很详细了啊!
description:
Checks whether a specified text string is contained in a specified window area. If the
text string is located, the location coordinates are also returned.