Anysy Journal弹出窗口问题
我正在尝试通过使用内置日记记录器记录所有输入,然后进行录制的代码并多次运行,以自动化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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论