我用图片点击后台模式,然后用其他窗口挡住我要找的窗口,要找的窗口是激活的,然后就报错说找不到图片,如果不用其他窗口挡住,就可以找到并点击,跟模拟点击模式效果一样。
Image.Click({"wnd":[{"app":"Foxmail","cls":"TFoxMainFrm.UnicodeClass"},{"cls":"TLayoutManager"},{"cls":"TAccountTreeFrame"},{"cls":"TVirtualDrawTree","aaname":"AccountUITree"}]},{"x":0,"y":0,"width":0,"height":0},@res"fc5i1b3s-vr6o-qutc-2quc-2fnrgmot88bu.png",0.9,"left","click",2000,{"bContinueOnError":false,"iDelayAfter":300,"iDelayBefore":200,"bSetForeground":false,"sCursorPosition":"Center","iCursorOffsetX":0,"iCursorOffsetY":0,"sKeyModifiers":[],"sSimulate":"uia"})