Created
April 26, 2021 07:08
-
-
Save yuujii/79f97ab3345c2c4be89f016021347d78 to your computer and use it in GitHub Desktop.
Teamsのスレッド折りたたみと詳細表示を(擬似的に)OFFにする方法(sikulix)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# カーソル移動速度 | |
Settings.MoveMouseDelay = 0.1 | |
while True: | |
time.sleep(1) | |
chkApp = App(u"Microsoft Teams") | |
# Teamsアプリ起動時のみ実行 | |
if chkApp.window(): | |
tR = Region(chkApp.window()) | |
aR = App.focusedWindow() | |
# Teamsウインドウフォーカス時のみ実行 | |
if tR.getX() == aR.getX() and tR.getY() == aR.getY() and tR.getW() == aR.getW() and tR.getH() == aR.getH(): | |
# findAllで対象がないときの待ち時間 | |
tR.setAutoWaitTimeout(0.1) | |
# [件の返信] | |
thList = tR.findAll("1619419447356.png") | |
for th in thList: | |
click(th) | |
# [詳細表示] | |
miList = tR.findAll("1619413751495.png") | |
for mi in miList: | |
click(mi) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment