yinkaisheng / Python-UIAutomation-for-Windows

🐍Python 3 wrapper of Microsoft UIAutomation. Support UIAutomation for MFC, WindowsForm, WPF, Modern UI(Metro UI), Qt, IE, Firefox, Chrome ...
Apache License 2.0
2.3k stars 462 forks source link

notepadWindow.SetTopmost(True) 这个方法为什么没有任何效果呢? #268

Open haiqintang opened 5 months ago

haiqintang commented 5 months ago

介绍的记事本例子中这条语句似乎只会产生一点延迟,删了也不影响。另外我自己测试也不能让窗口置顶,只能改用notepadWindow.SwitchToThisWindow()

redstoneleo commented 2 months ago

我也发现SetTopmost没什么效果,SwitchToThisWindow有效