Anysy Journal弹出窗口问题

发布于 2025-01-23 17:35:55 字数 360 浏览 3 评论 0原文

我正在尝试通过使用内置日记记录器记录所有输入,然后进行录制的代码并多次运行,以自动化ANSYS Workbench中的仿真工作流程。一切正常,但是有时会在流利的通知中弹出一个窗口,以指出设置已更改,并且用户必须在继续之前确认它。可悲的是,这个窗口随机弹出,所以我需要用某种句子检查它​​的存在,但是日记录制使用了Ironpython和一个非常奇怪的语法(至少对我)语法,我不知道如何整理一下可以检查此窗口的存在的句子。

代码e Bellow片段确认了弹出窗口:

setup1.sendCommand(command ='(cx-gui-do cx-activate-item“设置已更改! panelbuttons pushButton1(ok)”)' )

I'm trying to automate the simulation workflow in ANSYS Workbench by using the built in journal recorder to record all the inputs and then make copies of the recorded code and run it multiple times. Everything works fine, but sometimes a window pops up in Fluent notifiying that the settings have changed and the user must confirm it before it continues. Sadly this window pops up randomly, so I would need to check for it's presence with some sort of IF sentence, but journal recording uses IronPython with a very strange (for me at least) syntax and I have no idea how to put together the IF sentence that would check the presence of this window.

The piece of code bellow confirms the pop-up window:

setup1.SendCommand(Command='(cx-gui-do cx-activate-item "Settings have changed!PanelButtonsPushButton1(OK)")')

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文