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.
能否简要解释一下“If”条件在 Eclipse-RCPTT 脚本中的工作原理,或者我在哪里可以获得有关此信息的链接?
引用您的评论:
“我需要捕捉是否有任何弹出窗口并需要在该弹出窗口上执行某些操作”
这太笼统了,无法回答,使用“尝试”,您可以编写在缺少窗口时做出反应的代码:
try { get-window "My Dialog" | get-button OK | click } -catch { // Window was missing, let's try something else }
没有通用的“开关”或“如果”窗口标题匹配,而是为每种情况编写一个单独的案例。