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.
如何使用 PywinAuto 单击系统托盘图标(音量)
在这里,您有示例如何单击第一个按钮。使用 info.text 您可以尝试找到音量按钮。
from pywinauto import taskbar sti = taskbar.SystemTrayIcons.WrapperObject() print 'Clicking ', sti.Button(0).info.text sti.Button(0).Click()