是否可以在运行时或动态编码ui时动态查找窗口名称 [英] Is it possible to find a window name in runtime or dynamically when coded ui is running

查看:74
本文介绍了是否可以在运行时或动态编码ui时动态查找窗口名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




当我运行编码的ui项目时,我们预计会有4个不同的弹出窗口弹出窗口。我们不知道哪个窗口会出现在运行时。

如果我使用if条件,代码在某个特定时间内等待所有窗口存在或不存在。





所以,如果我能在运行时使用编码的ui识别窗口名称,通过使用开关案例代码将相应地运行。



请尽可能帮助我。



感谢您提前抽出时间。



我尝试过:



我试图在几个网站上展示如何识别控制权。 :(


When i am running a coded ui project, we were expected one pop up window out of 4 different pop up's. We do not know which window will appear in runtime.
If i use if conditions, code is waiting for all the windows exists or not within some specific time it has.


So, If i can recognize the window name in run time using coded ui, by using switch case code will run accordingly.

Please help me if it is possible.

Thank you for your time in advance.

What I have tried:

I tried in several sites they are showing how to recognize control. :(

推荐答案

请参阅此CodeProject文章: C#/ VB.NET和WinAPI:如何访问其他应用程序的窗口 [ ^ ]
See this CodeProject article: C# / VB.NET and WinAPI: How to Access Window of Other Application[^]


这篇关于是否可以在运行时或动态编码ui时动态查找窗口名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆