MouseAPI - 封装了一些鼠标操作的API,例如获取鼠标当前所在的位置、移动鼠标到指定的位置、在指定位置点击鼠标按钮等。

 

采用C#编写,可在QTP中通过DotNetFactory调用,例如:

Set mouse = DotNetFactory.CreateInstance("MouseAPI.MouseAPI","D:\Automation Framworks\AutomationTestAPI\MouseAPI\MouseAPI\bin\Debug\MouseAPI.dll")
mouse.MoveMouse 0,0
x = mouse.GetMouseX()
y = mouse.GetMouseY()
Print x
Print y
Set mouse = Nothing

 

下载地址:

https://files.cnblogs.com/testware/MouseAPI.rar

相关文章:

  • 2021-05-20
  • 2022-12-23
  • 2021-08-21
  • 2021-11-08
  • 2021-10-04
  • 2021-08-30
  • 2022-12-23
猜你喜欢
  • 2021-10-01
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-11
相关资源
相似解决方案