Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在为一个我无法访问其源代码的系统编写脚本 GUI 测试;我想调用方法并访问 OCX 控件(特别是 MSFlexGrid 控件)的属性,因为我找不到任何其他方法来找出行数和列数以及每个单元格中的数据值,在使用的 MSFlexGrid 控件。
我已经尝试过 Win32API、Win32OLE 和 FFI 库,但我仍然无法访问 OCX 控件以编写脚本。我可能错过了一些东西,我不知道是什么。
这是一个长镜头,但也许尝试通过铁红宝石来使用.net互操作?