鱿鱼丝 发表于 2016-8-27 16:45:22

为何每次用到句柄都出错呢?

代码如下;
Const SW_MINSIZE=6
Extern.Declare miclong,"ShowWindow","user32.dll","ShowWindow",miclong,miclong
window("text:=QuickTest.*").highlight
ohwnd=Window("text:=QuickTest.*").GetROProperty("HWND")
Extern.ShowWindow ohwnd,SW_MINSIZE
wait 2

错误提示:
Cannot identify the object "[ Window ]" (of class Window). Verify that this object's properties match an object currently displayed in your application.

Line (3): "window("text:=QuickTest.*").highlight".

Tip: If the objects in your application have changed, the Maintenance Run Mode can
help you identify and update your steps and/or the objects in your repository.

梦想家 发表于 2016-8-29 11:14:54

先说一下什么软件 在说问题 在粘代码

jingzizx 发表于 2016-8-29 16:46:29

看报错,怎么是识别不了对象
页: [1]
查看完整版本: 为何每次用到句柄都出错呢?