UIPATH 2020把任意窗口置顶(invoke method真香)

直接上代码,主要由两部分组成。

1.find element 定位窗体,把seletor转为Uielement,output为Uielement类型变量。

2.invoke method 第一行空

第二行uielement

第三行BringToForeground

此方法适用各种疑难杂窗体不能自动移到最上层,bringtoforeground可以将它们主动置最上层。

猜你喜欢

转载自blog.csdn.net/weixin_31808811/article/details/86214081