AutoHotKey Control获取 [英] AutoHotKey ControlGet

查看:266
本文介绍了AutoHotKey Control获取的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个脚本,当我发布ControlGet时会抛出错误. OtPtVar:= AfxWnd422 strMPP:=物料计划配置文件 ControlFocus,%OtPtVar%,%strMPP% 控制,显示,%OtPtVar%,%strMPP% 这些都可以,但是到达下一行时会引发错误: ControlGet,sysList,List,%OtptVar%,%strMPP% 该控件是一个网格,具有五个字段,行号,部件,描述,时间,延迟.

I have a script that is throwing and error when I issue a ControlGet. OtPtVar := AfxWnd422 strMPP := Material Planning Profile ControlFocus,%OtPtVar%,,%strMPP% Control,Show,,%OtPtVar%,,%strMPP% These all work but when it gets to the next line it throws an error: ControlGet,sysList,List,,%OtptVar%,,%strMPP% The control is a grid with five fields row number,Part,Description,Time,Lateness.

`ControlFocus,%OtPtVar%,,%strMPP%`
`Control,Show,,%OtPtVar%,,%strMPP%`    
`ControlGet,sysList,List,,%OtPtVar%,,%strMPP%`

该错误发生在最后一行. 谢谢.

The error occurs on the last line. Thank you.

推荐答案

ControlGet的List子命令只能处理标准的listview控件,这些控件通常具有类"SysListView32".

ControlGet's List subcommand can only handle standard listview controls, which usually have the class 'SysListView32'.

您是否尝试使用AccViewer以防万一.

Did you try AccViewer just in case.

此链接提及Deskperience Software提供的textcapturex,以帮助解决问题.
"AfxWnd42s"请帮助-AutoIt一般帮助和支持-AutoIt论坛
https://www.autoitscript.com/forum/topic/49057 -afxwnd42s-please-help/

This link mentions textcapturex by Deskperience Software in case that helps.
"AfxWnd42s" Please Help - AutoIt General Help and Support - AutoIt Forums
https://www.autoitscript.com/forum/topic/49057-afxwnd42s-please-help/

理论上有处理黑客的方法, 但我不是这些方面的专家,因此不推荐此类方法.

There are theoretically process hacker methods, but I'm not an expert on those, and wouldn't recommend such methods.

是的,很不幸,当我真正需要时,我只使用过一次OCR. 可能您可以执行OCR,以相同的字体重新创建文本, 并仔细检查图像是否完全匹配. 另外,如果可能的话,将字体设置为大写i和小L等明确的字符.

And yes, unfortunately when I really needed to, I used OCR once. Potentially you can do OCR, recreate the text in the same font, and check for an exact image match as a double-check. Also, if possible, set the font to one where characters such as capital i and small L are unambiguous.

这篇关于AutoHotKey Control获取的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆